#include <item.h>
Public Methods | |
TEfficiencyToken () | |
TEfficiencyToken (TEfficiencyToken &OldToken) | |
~TEfficiencyToken () | |
void | setWeaponType (TItem::tWeaponType WeaponType) |
TItem::tWeaponType | getWeaponType () const |
void | setEfficiency (int2 Efficiency) |
int2 | getEfficiency () const |
bool | operator== (const TEfficiencyToken &Token) const |
TEfficiencyToken & | operator= (const TEfficiencyToken &Token) |
bool | load (TDataPackageList *in, const string &sIdentifier, bool bUnique=true) |
bool | save (TDataPackageList *out, const string &sIdentifier, bool bUnique=true) const |
Protected Attributes | |
TItem::tWeaponType | fWeaponType |
int2 | fEfficiency |
|
This constructor generates a new TEfficiencyToken object with all properties resetted. That means the value for the efficiency and the weapon type is set to 0. You have to assign meaningful values with the appropriate set???? and get???? methods. |
|
This constructor also generates a new TEfficiencyToken object, but it copies from the parameter OldToken. This is the copy constructor. |
|
Destructs the object. Has nothing else to do, because no memory has to be freed or similar stuff. |
|
With the method getEfficiency you can get the efficiency against the weapon type.
|
|
With the method getWeaponType you can get the weapon type this object contains the efficiency against.
|
|
With the method Load you can load a TEfficiencyToken object from the data packages in the list. For more information look in the documentation of TLinkable.
|
|
This is the assignment operator for TEfficiencyToken. |
|
With the method operator== you can compare two TEfficiencyToken objects. This is of course the expected behaviour of "operator==".
|
|
With the method Save you can save a TEfficiencyToken object from the data packages in the list. For more information look in the documentation of TLinkable.
|
|
With the method setEfficiency you can set the efficiency against the weapon type.
|
|
With the method setWeaponType you can set the weapon type this object should contain the efficiency against.
|
|
the efficiency against the weapon type |
|
the weapon type |