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

TJammerDisguise Class Reference

TJammerDisguise represents a disguise jammer for ships. More...

#include <item.h>

Inheritance diagram for TJammerDisguise:

Inheritance graph
[legend]
Collaboration diagram for TJammerDisguise:

Collaboration graph
[legend]
List of all members.

Public Methods

 TJammerDisguise ()
 TJammerDisguise (const TJammerDisguise &OldJammerDisguise)
virtual ~TJammerDisguise ()
virtual bool load (TDataPackageList *in)
virtual bool save (TDataPackageList *out) const
virtual TJammer::tJammerType getJammerType () const
virtual bool operator== (const TJammerDisguise &JammerDisguise) const
virtual TJammerDisguise & operator= (const TJammerDisguise &JammerDisguise)

Detailed Description

TJammerDisguise represents a disguise jammer for ships.

Author:
Ralf Laue
Version:
Id:
item.h,v 1.34 2002/04/02 22:33:08 prolator Exp
See also:
TJammer
The class TJammerDisguise is derived from TJammer and and can therefor be put on a ship. It has a value JamEfficiency (implemented in TJammer) and get and set methods for it. A disguise jammer is a jammer which tries to disguise the real type/shape of the ship, so that a small ship is perceived as a huge battleship (or vice versa). 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 TJammerDisguise.


Constructor & Destructor Documentation

TJammerDisguise::TJammerDisguise  
 

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

TJammerDisguise::TJammerDisguise const TJammerDisguise &    OldJammerDisguise
 

This constructor creates also a new disguise jammer, but its attributes are copied from the TJammerDisguise object given in OldJammerDisguise. This method is mostly implemented to provide a copy constructor.

Parameters:
OldJammerDisguise  the disguise jammer which shall be copied

virtual TJammerDisguise::~TJammerDisguise   [virtual]
 

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


Member Function Documentation

virtual TJammer::tJammerType TJammerDisguise::getJammerType   const [virtual]
 

With the method getJammerType you can get the type of the jammer, in this case TJammer::DISGUISE.

Returns:
TJammer::DISGUISE

Reimplemented from TJammer.

virtual bool TJammerDisguise::load TDataPackageList   in [virtual]
 

The method Load loads a TJammerDisguise 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 TJammer.

virtual TJammerDisguise& TJammerDisguise::operator= const TJammerDisguise &    JammerDisguise [virtual]
 

This is the assignment operator for TJammerDisguise.

virtual bool TJammerDisguise::operator== const TJammerDisguise &    JammerDisguise const [virtual]
 

This is the compare operator for TJammerDisguise.

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

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

The method Save saves a TJammerDisguise 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 TJammer.


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