#include <item.h>
Inheritance diagram for TArmorType:
Public Methods | |
TArmorType () | |
TArmorType (const int2 StandardEfficiency) | |
TArmorType (const TArmorType &OldArmorType) | |
virtual | ~TArmorType () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual bool | operator== (const TArmorType &ArmorType) const |
virtual TArmorType & | operator= (const TArmorType &ArmorType) |
|
This constructor generates a new TArmorType object with all properties resetted. This means the value for the standard efficiency is 100 and the defense type doesn't know any weapons types. These you have to make known with setDefenseEfficiency. |
|
This constructor generates a also new TArmorType 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 setArmorEfficiency. |
|
This constructor creates also a new defense type, but the attributes are copied from the defense type given in OldArmorType. 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 Load loads a TArmorType object from the data packages in the list. All sub classes of TArmorType have to reimplement the Load method and they must call TArmorType::Load explicitly in their Load method to load the data correctly.
Reimplemented from TDefenseType. |
|
This is the assignment operator for TArmorType. |
|
With the method operator== you can compare two TArmorType objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TArmorType by adding the data packages to the list. All sub classes of TArmorType have to reimplement the Save method and they must call TArmorType::Save explicitly in their Save method to save the data correctly.
Reimplemented from TDefenseType. |