#include <item.h>
Inheritance diagram for TMiningBot:
Public Methods | |
TMiningBot () | |
TMiningBot (const TMiningBot &OldMiningBot) | |
virtual | ~TMiningBot () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual TItem::tItemType | getItemType () const |
virtual void | setMiningRate (const int2 MiningRate) |
virtual int2 | getMiningRate () const |
virtual bool | operator== (const TMiningBot &MiningBot) const |
virtual TMiningBot & | operator= (const TMiningBot &MiningBot) |
Protected Attributes | |
int2 | fMiningRate |
|
This constructor generates a new TMiningBot 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 mineral mining facility, but its attributes are copied from the TMiningBot object given in OldMiningBot. 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::MININGBOT for mineral mining device.
Reimplemented from TItem. |
|
With the method getMiningRate you can get the mineral mining rate of the mineral mining facility.
|
|
The method Load loads a TMiningBot object from the data packages in the list.
Reimplemented from TItem. |
|
This is the assignment operator for TMiningBot. |
|
With the method operator== you can compare two TMiningBot objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TMiningBot object by adding the data packages to the list.
Reimplemented from TItem. |
|
The method setMiningRate sets the mineral mining rate of the mineral mining device.
|
|
the mineral mining facility's mineral mining rate |