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

TFighterLauncher Class Reference

TFighterLauncher represents a fighter bay/launcher for a ship. More...

#include <item.h>

Inheritance diagram for TFighterLauncher:

Inheritance graph
[legend]
Collaboration diagram for TFighterLauncher:

Collaboration graph
[legend]
List of all members.

Public Methods

 TFighterLauncher ()
 TFighterLauncher (const TFighterLauncher &OldFighterLauncher)
virtual ~TFighterLauncher ()
virtual bool load (TDataPackageList *in)
virtual bool save (TDataPackageList *out) const
virtual TItem::tItemType getItemType () const
virtual void setLaunchRate (const int2 LaunchRate)
virtual int2 getLaunchRate () const
virtual void setLandingRate (const int2 LandingRate)
virtual int2 getLandingRate () const
virtual void setRepairRate (const int2 RepairRate)
virtual int2 getRepairRate () const
virtual bool operator== (const TFighterLauncher &FighterLauncher) const
virtual TFighterLauncher & operator= (const TFighterLauncher &FighterLauncher)

Protected Attributes

int2 fLaunchRate
int2 fLandingRate
int2 fRepairRate

Detailed Description

TFighterLauncher represents a fighter bay/launcher for a ship.

Author:
Ralf Laue
Version:
Id:
item.h,v 1.34 2002/04/02 22:33:08 prolator Exp
See also:
TShipDesign
The class TFighterLauncher is derived from TItem and can therefore be put on a ship design. TFighterLauncher represents the fighter launcher and repair bay for a ship. As all other items it has mass, volume and a surface area. Besides that it has a rate of launching for fighter, a rate of landing of fighter and a rate of repairing fighters. How these values are interpreted exactly is up to the rule set/battle engine and of no direct concern to the TFighterLauncher item class. FIXME, in future it could be decided that fighter bay/launcher can only launch fighter of a certain type. This information would then have to be added to this class.


Constructor & Destructor Documentation

TFighterLauncher::TFighterLauncher  
 

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

TFighterLauncher::TFighterLauncher const TFighterLauncher &    OldFighterLauncher
 

This constructor creates also a fighter launcher/bay, but its attributes are copied from the TFighterLauncher object given in OldFighterLauncher. This method is mostly implemented to provide a copy constructor.

Parameters:
OldFighterLauncher  the TFighterLauncher object to be copied

virtual TFighterLauncher::~TFighterLauncher   [virtual]
 

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


Member Function Documentation

virtual TItem::tItemType TFighterLauncher::getItemType   const [virtual]
 

The method getItemType returns the type of the item, in this case TItem::FIGHTERLAUNCHER for fighter bay/launcher.

Returns:
TItem::FIGHTERLAUNCHER

Reimplemented from TItem.

virtual int2 TFighterLauncher::getLandingRate   const [virtual]
 

With the method getLandingRate you can get the fighter landing rate of the fighter bay.

Returns:
the fighter bay's fighter landing rate

virtual int2 TFighterLauncher::getLaunchRate   const [virtual]
 

With the method getLaunchRate you can get the fighter launching rate of the fighter bay.

Returns:
the fighter bay's fighter launching rate

virtual int2 TFighterLauncher::getRepairRate   const [virtual]
 

With the method getRepairRate you can get the fighter repair rate of the fighter bay.

Returns:
the fighter bay's fighter repair rate

virtual bool TFighterLauncher::load TDataPackageList   in [virtual]
 

The method Load loads a TFighterLauncher 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 TItem.

virtual TFighterLauncher& TFighterLauncher::operator= const TFighterLauncher &    FighterLauncher [virtual]
 

This is the assignment operator for TFighterLauncher.

virtual bool TFighterLauncher::operator== const TFighterLauncher &    FighterLauncher const [virtual]
 

With the method operator== you can compare two TFighterLauncher objects. This is of course the expected behaviour of "operator==".

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

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

The method Save saves a TFighterLauncher 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 TItem.

virtual void TFighterLauncher::setLandingRate const int2    LandingRate [virtual]
 

The method setLandingRate sets the fighter landing rate of the fighter bay.

Parameters:
LandingRate  the fighter bay's new fighter landing rate

virtual void TFighterLauncher::setLaunchRate const int2    LaunchRate [virtual]
 

The method setLaunchRate sets the fighter launching rate of the fighter bay.

Parameters:
LaunchRate  the fighter bay's new fighter launching rate

virtual void TFighterLauncher::setRepairRate const int2    RepairRate [virtual]
 

The method setRepairRate sets the fighter repair rate of the fighter bay.

Parameters:
RepairRate  the fighter bay's new fighter repair rate


Member Data Documentation

int2 TFighterLauncher::fLandingRate [protected]
 

the fighter bay's fighter landing rate

int2 TFighterLauncher::fLaunchRate [protected]
 

the fighter bay's fighter launching rate

int2 TFighterLauncher::fRepairRate [protected]
 

the fighter bay's fighter repair rate


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