Ah, so that's what factory patterns are :) That looks like a pretty good solution. I'd prefer not to have to edit the factory just to add a new type of level, but this is at least more encapsulated...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: danep Search: Search took 0.03 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |