Wednesday, August 24, 2022
HomeGame Developmentstructure - What do you name the bottom class for a weapon?

structure – What do you name the bottom class for a weapon?


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:

  1. “World”
  2. “Entity” – like “Participant”, “Grunt”, “Barrel”, “Door”
  3. “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?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments