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

race.h

00001 // $Id: race_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $
00002 
00003 // Race Header File
00004 // Written by: Marco Krohn
00005 
00006 // Copyright (C) 2001 - , Marco Krohn, <marco.krohn@gmx.de>
00007 //
00008 // This program is free software; you can redistribute it and/or modify
00009 // it under the terms of the GNU General Public License as published by
00010 // the Free Software Foundation; either version 1, or (at your option)
00011 // any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
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 //----------------------------------------  class TRace  ----------------------------------------
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

Generated on Thu Jun 20 18:13:16 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001