#include <item.h>
Inheritance diagram for TShieldType:
Public Methods | |
TShieldType () | |
TShieldType (const int2 StandardEfficiency) | |
TShieldType (const TShieldType &OldShieldType) | |
virtual | ~TShieldType () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual void | setRegenerationRate (int2 RegenerationRate) |
virtual int2 | getRegenerationRate () const |
virtual bool | operator== (const TShieldType &ShieldType) const |
virtual TShieldType & | operator= (const TShieldType &ShieldType) |
Protected Attributes | |
int2 | fRegenerationRate |
|
This constructor generates a new TShieldType object with all properties resetted. This means the value for the standard efficiency is 100 and the shield type doesn't know any weapons types. These you have to make known with setDefenseEfficiency. |
|
This constructor generates a also new TShieldType object, but only with the defense efficiencies resetted. The standard efficiency is set to the value given as parameter. The efficiencies against weapon types have to be set with setShieldEfficiency. |
|
This constructor creates also a new defense type, but the attributes are copied from the defense type given in OldShieldType. 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. |
|
With the method getRegenerationRate you can get the regeneration rate of shields of this shield type.
|
|
The method Load loads a TShieldType object from the data packages in the list. All sub classes of TShieldType have to reimplement the Load method and they must call TShieldType::Load explicitly in their Load method to load the data correctly.
Reimplemented from TDefenseType. |
|
This is the assignment operator for TShieldType. |
|
With the method operator== you can compare two TShieldType objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TShieldType by adding the data packages to the list. All sub classes of TShieldType have to reimplement the Save method and they must call TShieldType::Save explicitly in their Save method to save the data correctly.
Reimplemented from TDefenseType. |
|
With the method setRegenerationRate you can set the regeneration rate of shields of this shield type.
|
|
the regeneration rate of this shield type |