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.
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.
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.
I would suggest reading "HeadFirst: Design Patterns"
It has a very nice and simple explanation of most of the patterns, including Composite.