#include <item.h>
Inheritance diagram for TFTLEngine:
Public Methods | |
TFTLEngine () | |
TFTLEngine (const TFTLEngine &OldFTLEngine) | |
virtual | ~TFTLEngine () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual TItem::tItemType | getItemType () const |
virtual void | setFTLPower (const int2 FTLPower) |
virtual int2 | getFTLPower () const |
virtual bool | operator== (const TFTLEngine &FTLEngine) const |
virtual TFTLEngine & | operator= (const TFTLEngine &FTLEngine) |
Protected Attributes | |
int2 | fFTLEnginePower |
|
This constructor generates a new FTL engine 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 new FTL engine, but the attributes are copied from the FTL engine given in OldFTLEngine. 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. |
|
With the method getFTLPower you can get the power for FTL flight of the FTL engine.
|
|
The method getItemType returns the type of the item, in this case TItem::FTLENGINE for FTL engine.
Reimplemented from TItem. |
|
The method Load loads a TFTLEngine object from the data packages in the list.
Reimplemented from TItem. |
|
This is the assignment operator for TFTLEngine. |
|
With the method operator== you can compare two TFTLEngine objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TFTLEngine object by adding the data packages to the list.
Reimplemented from TItem. |
|
The method setFTLPower sets the power for FTL flight of the FTL engine.
|
|
the power for FTL flight of the engine |