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