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

TRace Class Reference

Base class for race specific data. More...

#include <race.h>

Inheritance diagram for TRace:

Inheritance graph
[legend]
Collaboration diagram for TRace:

Collaboration graph
[legend]
List of all members.

Public Methods

 TRace (const string &name="")
virtual ~TRace ()
TPlayer * getController (void) const
virtual double getFleetEngineFailure () const=0
const string & getName () const
virtual bool load (TDataPackageList *in)
virtual bool save (TDataPackageList *out) const
void setName (const string &name)

Private Attributes

TLink< TPlayer > fController
string fName

Detailed Description

Base class for race specific data.

Author:
Marco Krohn <marco.krohn@gmx.de>
Version:
Id:
race.h,v 1.8 2002/05/11 23:51:03 mkrohn5 Exp
See also:
TLinkable


Constructor & Destructor Documentation

TRace::TRace const string &    name = ""
 

FIXME


Member Function Documentation

TPlayer* TRace::getController void    const
 

Fetch the player who's controlling this race

Returns:
a pointer to the player object.

virtual double TRace::getFleetEngineFailure   const [pure virtual]
 

Returns:
The base value for fleet engine failure.

const string& TRace::getName   const
 

Fetch the name of the race.

Returns:
a reference to the string containing the race name.

virtual bool TRace::load TDataPackageList   in [virtual]
 

Loads a TRace object from the data packages in the data package list.

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

Reimplemented from TLinkable.

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

Saves a TRace by adding the data packages to the data package list.

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

Reimplemented from TLinkable.

void TRace::setName const string &    name
 

Sets the name of the race.

Parameters:
name  The new name of the race.


Member Data Documentation

TLink<TPlayer> TRace::fController [private]
 

The player which controls this race

string TRace::fName [private]
 

Name of the race


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