Version 1 (modified by landauf, 17 years ago) (diff) |
---|
GUNS
TracNav(TracNav/TOC)? one of the most interesting part for players of action games are GUNS.
types
orxonox knows the following Gun-types:
- Lasers, unidirectionals
- direction: one specified: front, sideways, backwards, up down
- shiptype: small ships
- Rockets
- direction: initial: to the front (if there exists one), flightpath variable
- shiptype: all ships
- Turrets:
- direction: mouse-look
- shiptype: big ones (supporting multiple people)
- Bombs
- direction: hole screen
- shiptype: only the big guys
implementation
- WeaponManager: every ship has a WeaponManager, that…
- handles its guns,
- ticks them,
- lets them shoot,
- connects them to ships energy
- activates/deactivates … them.
- Weapon: Superclass: this is the main class for Weapons, that will be derived by .see types. (many more)
- Projectile: Superclass: The Projectile-class is the main class for any ammo, what we acctually throw at enemies
- Lasershots
- Rockets
- Electrical charges (as we are elictrical engeneers)
- the Bomb(tm) itself
- water and so on……