#include <item.h>
Inheritance diagram for TFuelTank:
Public Methods | |
TFuelTank () | |
TFuelTank (const TFuelTank &OldFuelTank) | |
virtual | ~TFuelTank () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual TItem::tItemType | getItemType () const |
virtual void | setTankCapacity (const int2 Capacity) |
virtual int2 | getTankCapacity () const |
virtual bool | operator== (const TFuelTank &FuelTank) const |
virtual TFuelTank & | operator= (const TFuelTank &FuelTank) |
Protected Attributes | |
int2 | fTankCapacity |
|
This constructor generates a new TFuelTank 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 new fuel tank, but the attributes are copied from the fuel tank given in OldFuelTank. 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::FUELTANK for fuel tank.
Reimplemented from TItem. |
|
With the method getTankCapacity you can get the size/storage capacity for the fuel tank.
|
|
The method Load loads a TFuelTank object from the data packages in the list.
Reimplemented from TItem. |
|
This is the assignment operator for TFuelTank. |
|
With the method operator== you can compare two TFuelTank objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TFuelTank object by adding the data packages to the list.
Reimplemented from TItem. |
|
The method setTankCapacity sets the size/storage capacity for the fuel tank.
|
|
the capacity of the fuel tank object |