3 | | Implement the system very modular, because we want to use it with different variations for different spaceships (Player, Enemies, NPCs, ...) and think early about the link to the spaceship class (aiming, shooting, weapon change, ...). |
| 3 | Design a weapon system for spaceships. Find a way to assign weapons to ships. A way to change weapon configuration and fire mode. |
| 4 | |
| 5 | == Goal == |
| 6 | |
| 7 | A very generic interface for space ships. A ship should be able to be equipped with several weapons like lasers, projectile guns and missiles. Find a way to manage all the features those weapons have and to control them from the ships control.[[br]] |
| 8 | This system might be used for not only space ships, but other crafts. |
| 9 | |
| 10 | == Implementation == |
| 11 | |
| 12 | Think of several weapon types and how they differ. The system must be used by AI as well. You need to find a way to define weapon slots and assign weapons to it. Change the selection of different weapon slots so a variation of weapons can be used.[[br]] |
| 13 | Most certainly the weapon system has to have its link to the space ship. Weapon slots has to have a position on the space ships model and must be reached through control and AI.[[br]] |
| 14 | Weapons may shoot, charge, recharge, upgrade and load or may have special features like remote triggering. Figure out if this is an issue of the weapon system or the weapon itself. |