#include <item.h>
Inheritance diagram for TSPWeaponLauncher:
Public Methods | |
TSPWeaponLauncher () | |
TSPWeaponLauncher (const TSPWeaponLauncher &OldSPWeaponLauncher) | |
virtual | ~TSPWeaponLauncher () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual TItem::tItemType | getItemType () const |
virtual void | setLaunchRate (const int2 LaunchRate) |
virtual int2 | getLaunchRate () const |
virtual bool | operator== (const TSPWeaponLauncher &SPWeaponLauncher) const |
virtual TSPWeaponLauncher & | operator= (const TSPWeaponLauncher &SPWeaponLauncher) |
Protected Attributes | |
int2 | fLaunchRate |
|
This constructor generates a new TSPWeaponLauncher object with all properties resetted. This means you have to set all properties like name and mass afterwards with help of the respective set<something> methods. |
|
This constructor creates also a SP weapon launcher, but its attributes are copied from the TSPWeaponLauncher object given in OldSPWeaponLauncher. This method is mostly implemented to provide a copy constructor.
|
|
Destructs the object. Has nothing else to do, because no memory has to be freed or similar stuff. |
|
The method getItemType returns the type of the item, in this case TItem::SPWEAPONLAUNCHER for SP weapon launcher.
Reimplemented from TItem. |
|
With the method getLaunchRate you can get the launching rate if the SP weapon launcher.
|
|
The method Load loads a TSPWeaponLauncher object from the data packages in the list.
Reimplemented from TItem. |
|
This is the assignment operator for TSPWeaponLauncher. |
|
With the method operator== you can compare two TSPWeaponLauncher objects. This is of course the expected behaviour of "operator==".
|
|
The method Save saves a TSPWeaponLauncher object by adding the data packages to the list.
Reimplemented from TItem. |
|
The method setLaunchRate sets the launching rate of the SP weapon launcher.
|
|
the SP weapon launcher's SP weapon launching rate |