This can be a type query.
I’ve a 3D sport (assume Quake) and the OOP design at a really excessive stage has 3 major base courses:
- “World”
- “Entity” – like “Participant”, “Grunt”, “Barrel”, “Door”
- “Weapon” – like “Shotgun”, “Nailgun”
The query is I would like gamers to hold extra than simply weapons on this sport. For instance, World of Warcraft you possibly can carry many issues in addition to weapons like shields, armor, clothes, amulets, rings, and many others. So, I would like a base class for Weapon that’s extra generic.
I’ve considered “Merchandise”, “Gear”, “Tools”, “Equipment” as the bottom class. However I’m assuming there should be a typical time period for this out. What do different sport engines use for one of these base class?