| | 1 | = GUNS = |
| | 2 | [[TracNav(TracNav/TOC)]] |
| | 3 | one of the most interesting part for players of action games are GUNS. |
| | 4 | |
| | 5 | == types == |
| | 6 | __orxonox__ knows the following Gun-types: |
| | 7 | 1. __Lasers__, unidirectionals |
| | 8 | * '''direction''': one specified: front, sideways, backwards, up down |
| | 9 | * '''shiptype''': small ships |
| | 10 | 1. __Rockets__ |
| | 11 | * '''direction''': initial: to the front (if there exists one), flightpath variable |
| | 12 | * '''shiptype''': all ships |
| | 13 | 1. __Turrets__: |
| | 14 | * '''direction''': mouse-look |
| | 15 | * '''shiptype''': big ones (supporting multiple people) |
| | 16 | 1. __Bombs__ |
| | 17 | * '''direction''': hole screen |
| | 18 | * '''shiptype''': only the big guys :) |
| | 19 | |
| | 20 | ----- |
| | 21 | |
| | 22 | == implementation == |
| | 23 | |
| | 24 | * '''WeaponManager''': every ship has a WeaponManager, that... |
| | 25 | * handles its guns, |
| | 26 | * ticks them, |
| | 27 | * lets them shoot, |
| | 28 | * connects them to ships energy |
| | 29 | * activates/deactivates |
| | 30 | ... them. |
| | 31 | |
| | 32 | ----- |
| | 33 | |
| | 34 | * '''Weapon''': Superclass: this is the main class for Weapons, that will be derived by .see types. (many more) |
| | 35 | * '''Projectile''': Superclass: The Projectile-class is the main class for any ammo, what we acctually throw at enemies |
| | 36 | * Lasershots |
| | 37 | * Rockets |
| | 38 | * Electrical charges (as we are elictrical engeneers) |
| | 39 | * the Bomb(tm) itself |
| | 40 | * water and so on...... |