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