Hello y’all!
Using OOP, I want to create some templates for different types of weapons and their respective projectiles, to be easily created during runtime. I am not sure of how to store these templates, though. For the sake of clarification, projectile templates are tables containing temporary data and some details regarding their functionality. Weapons have similar information while carrying a template themselves. The only information I need to retreive are the weapons themselves.
I was between choosing one of the following options:
- Putting weapons and projectiles alike into a single combined module;
- Having a module with projectiles which is called by the weapons module;
- Making multiple modules that represent a pair of bullet template and weapon.
Any other options to organize this? What would be the best way?