00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __RACE_INCLUDED
00019 #define __RACE_INCLUDED
00020
00021 #include "common/link.h"
00022
00023 class TFleet;
00024 class TPlayer;
00025
00026
00027
00028
00029
00030
00031
00039 class TRace : public TLinkable
00040 {
00041 public:
00045 TRace( const string& name="" );
00046 virtual ~TRace();
00047
00052 TPlayer* getController(void) const;
00056 virtual double getFleetEngineFailure() const = 0;
00061 const string& getName() const;
00068 virtual bool load( TDataPackageList* in );
00075 virtual bool save( TDataPackageList* out ) const;
00080 void setName( const string& name );
00081
00082 private:
00084 TLink<TPlayer> fController;
00086 string fName;
00087 };
00088
00089
00090
00091 #endif // __RACE_INCLUDED