Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 2 (modified by landauf, 17 years ago) (diff)

GUNS

This is an archived page!
This page is very old and the content is not up to date.
Not everything (if any) which is written here will be in the final game!

TracNav(TracNav/TOC)? one of the most interesting part for players of action games are GUNS.

types

orxonox knows the following Gun-types:

  1. Lasers, unidirectionals
    • direction: one specified: front, sideways, backwards, up down
    • shiptype: small ships
  2. Rockets
    • direction: initial: to the front (if there exists one), flightpath variable
    • shiptype: all ships
  3. Turrets:
    • direction: mouse-look
    • shiptype: big ones (supporting multiple people)
  4. 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……