Weapon Concept
Author
Description
This project is about how to handle weapons. WeaponSystem gives other objects (e.g. Spaceships) the ability to carry different weapons and not just one.
Classes
WeaponSystem
This is the main class. Every object that has the ability to carry weapons has a WeaponSystem (and only one). It manages all other classes of the weaponSystem.
WeaponSet
Defines which WeaponSlots are part of every WeaponSet. Represents the firemode.
WeaponPack
A WeaponPack is a standalone Package of Weapon objects. It can be attached to a object with a WeaponSystem. It could also be a PickupItem or something else. It is not connected to the WeaponSystem or the Spaceship.
WeaponSlot
This is a fixed Slot for a Weapon with a position and orientation on the Spaceship. It is also a member of the WeaponSystem. A Weapon can be put on a WeaponSlot.
Weapon
The base class for all weapons. Defines the general weapon properties, attaching to the spaceship …
Munition
The base class for all munitions.
specific classes:
LaserGun
LaserGunMunition
Fusion
WeaponSystem
Images / Diagrams
Attachments (1)
-
weaponSystem_inheritance.png
(40.2 KB) -
added by polakma 16 years ago.
Inheritance of the WeaponSystem classes
Download all attachments as: .zip