Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

TScannerAntiCloakActive Class Reference

TScannerAntiCloak represents a active anti cloak scanner. More...

#include <item.h>

Inheritance diagram for TScannerAntiCloakActive:

Inheritance graph
[legend]
Collaboration diagram for TScannerAntiCloakActive:

Collaboration graph
[legend]
List of all members.

Public Methods

 TScannerAntiCloakActive ()
 TScannerAntiCloakActive (const TScannerAntiCloakActive &OldScannerAntiCloakActive)
virtual ~TScannerAntiCloakActive ()
virtual bool load (TDataPackageList *in)
virtual bool save (TDataPackageList *out) const
virtual TScanner::tScannerType getScannerType () const
virtual bool operator== (const TScannerAntiCloakActive &ScannerAntiCloakActive) const
virtual TScannerAntiCloakActive & operator= (const TScannerAntiCloakActive &ScannerAntiCloakActive)

Detailed Description

TScannerAntiCloak represents a active anti cloak scanner.

Author:
Ralf Laue
Version:
Id:
item.h,v 1.34 2002/04/02 22:33:08 prolator Exp
See also:
TScanner
The class TScannerAntiCloakActive is derived from TScanner and and can therefor be put on a ship. It has a value ScanEfficiency (implemented in TScanner) and get and set methods for it. A active anti cloak scanner is a scanner which tries to detect cloaked ships. Because it is active it should be more effective than the passive version. On the down side, because it's active nature it also increases the risk of being dectected. But the exact efficiency value and which effects it exactly has is decided by the rule set/battle engine and of no direct concern to the class TScannerAntiCloakActive.


Constructor & Destructor Documentation

TScannerAntiCloakActive::TScannerAntiCloakActive  
 

This constructor generates a new TScannerAntiCloakActive 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.

TScannerAntiCloakActive::TScannerAntiCloakActive const TScannerAntiCloakActive &    OldScannerAntiCloakActive
 

This constructor creates also a new active anti cloak scanner, but its attributes are copied from the TScannerAntiCloakActive object given in OldScannerAntiCloakActive. This method is mostly implemented to provide a copy constructor.

Parameters:
OldScannerAntiCloakActive  the normal active scanner which shall be copied

virtual TScannerAntiCloakActive::~TScannerAntiCloakActive   [virtual]
 

Destructs the object. Has nothing else to do, because no memory has to be freed or similar stuff.


Member Function Documentation

virtual TScanner::tScannerType TScannerAntiCloakActive::getScannerType   const [virtual]
 

With the method getScannerType you can get the type of the scanner, in this case TScanner::ANTICLOAK_ACTIVE.

Returns:
TScanner::ANTICLOAK_ACTIVE

Reimplemented from TScanner.

virtual bool TScannerAntiCloakActive::load TDataPackageList   in [virtual]
 

The method Load loads a TScannerAntiCloakActive object from the data packages in the list.

Parameters:
in  the list of data packages
Returns:
true means that everything was loaded correctly, otherwise this method will return false.
See also:
TLinkable

Reimplemented from TScanner.

virtual TScannerAntiCloakActive& TScannerAntiCloakActive::operator= const TScannerAntiCloakActive &    ScannerAntiCloakActive [virtual]
 

This is the assignment operator for TScannerAntiCloakActive.

virtual bool TScannerAntiCloakActive::operator== const TScannerAntiCloakActive &    ScannerAntiCloakActive const [virtual]
 

This is the compare operator for TScannerAntiCloakActive.

Parameters:
ScannerAntiCloakActive  the TScannerAntiCloakActive object which shall be compared with "*this"
Returns:
true if the TScannerAntiCloakActive objects are equal and false if not

virtual bool TScannerAntiCloakActive::save TDataPackageList   out const [virtual]
 

The method Save saves a TScannerAntiCloakActive object by adding the data packages to the list.

Parameters:
out  the output stream of data packages
Returns:
true means that everything was saved correctly, otherwise this method will return false.
See also:
TLinkable

Reimplemented from TScanner.


The documentation for this class was generated from the following file:
Generated on Thu Jun 20 18:13:31 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001