views:

53

answers:

2

Hi

I'm making a game of soccer in WPF with C#. A composite pattern sounds like a good idea to control multiple players properties, and such. This is nothing to do with event handlers. So if there are any good tutorials that anyone knows of - thanks.

+1  A: 

You could try the composite design pattern example at dofactory:

http://www.dofactory.com/Patterns/PatternComposite.aspx

There are a couple of C# code examples there.

fletcher
+1  A: 

I would suggest reading "HeadFirst: Design Patterns"

It has a very nice and simple explanation of most of the patterns, including Composite.

Amby