Hot answers tagged objects
Data-Driven Design I submitted something like this question to code review recently. After some suggestions and improvements, the result was a simple code that would allow some relative flexibility on weapon creation based on a dictionary (or JSON). The data is interpreted at runtime and simple verifications are done by the Weapon class itself, without the ...
http://en.wikipedia.org/wiki/Flyweight_pattern is the pattern name if I'm reading your question correctly.
Only top voted, non community-wiki answers of a minimum length are eligible