Planet
navi homeaboutscreenshotsdownloaddevelopmentforum

Weapon Concept

Author

MartinPolak?

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

Last modified 8 years ago Last modified on Mar 12, 2009, 3:54:06 PM

Attachments (1)

Download all attachments as: .zip