#include <item.h>
Inheritance diagram for TTargetingComputer:
Public Methods | |
TTargetingComputer () | |
TTargetingComputer (const TTargetingComputer &OldTargetingComputer) | |
virtual | ~TTargetingComputer () |
virtual bool | load (TDataPackageList *in) |
virtual bool | save (TDataPackageList *out) const |
virtual TItem::tItemType | getItemType () const |
virtual void | setAimingEfficiency (const int2 AimingEfficiency) |
virtual int2 | getAimingEfficiency () const |
virtual bool | operator== (const TTargetingComputer &TargetingComputer) const |
virtual TTargetingComputer & | operator= (const TTargetingComputer &TargetingComputer) |
Protected Attributes | |
int2 | fAimingEfficiency |
|
This constructor generates a new TTargetingComputer 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 targeting computer, but its attributes are copied from the targeting computer given in OldTargetingComputer. 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. |
|
With the method getAimingEfficiency you can get the aiming efficiency of the targeting computer.
|
|
The method getItemType returns the type of the item, in this case TItem::TARGETINGCOMPUTER for targeting computer.
Reimplemented from TItem. |
|
The method Load loads a TTargetingComputer object from the data packages in the list.
Reimplemented from TItem. |
|
This is the assignment operator for TTargetingComputer. |
|
With the method operator== you can compare two TTargetingComputer objects. This is of course the behaviour one would expect from "operator==".
|
|
The method Save saves a TTargetingComputer object by adding the data packages to the list.
Reimplemented from TItem. |
|
The method setAimingEfficiency sets the aiming efficiency of the targeting computer.
|
|
the aiming efficiency of the targeting computer |