#include <item.h>
Inheritance diagram for TRepairBot:
Public Methods | |
TRepairBot () | |
TRepairBot (const TRepairBot &OldRepairBot) | |
virtual | ~TRepairBot () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual TItem::tItemType | getItemType () const |
virtual void | setRepairSpeed (const int2 RepairSpeed) |
virtual int2 | getRepairSpeed () const |
virtual bool | operator== (const TRepairBot &RepairBot) const |
virtual TRepairBot & | operator= (const TRepairBot &RepairBot) |
Protected Attributes | |
int2 | fRepairSpeed |
|
This constructor generates a new TRepairBot 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 repair module, but the attributes are copied from the reapir module given in OldRepairBot. 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::REPAIRBOT for repair module.
Reimplemented from TItem. |
|
With the method getRepairSpeed you can get the efficiency of the repair module.
|
|
The method Load loads a TRepairBot object from the data packages in the list.
Reimplemented from TItem. |
|
This is the assignment operator for TRepairBot. |
|
With the method operator== you can compare two TRepairBot objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TRepairBot object by adding the data packages to the list.
Reimplemented from TItem. |
|
The method setRepairSpeed sets the efficiency of the repair module.
|
|
the efficiency of the repair module |