00001 // $Id: game-sc_8h-source.html,v 1.1 2002/06/20 17:09:51 mkrohn5 Exp $ 00002 00003 // Game Server Client Header File 00004 // Written by: Alberto Barsella, <> 00005 // Marco Krohn, <marco.krohn@gmx.de> 00006 00007 // Copyright (C) 2002 - , Marco Krohn, <marco.krohn@gmx.de> 00008 // 00009 // This program is free software; you can redistribute it and/or modify 00010 // it under the terms of the GNU General Public License as published by 00011 // the Free Software Foundation; either version 1, or (at your option) 00012 // any later version. 00013 // 00014 // This program is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU General Public License for more details. 00018 00019 #ifndef __GAME_SC_INCLUDED 00020 #define __GAME_SC_INCLUDED 00021 00022 #include "admin/game.h" 00023 00024 00025 00026 00027 00028 //---------------------------------------- class TGameSC ---------------------------------------- 00029 00040 class TGameSC : public TGame 00041 { 00042 public: 00046 TPlayer* getActivePlayer() const; 00053 bool loadPlayerOrderFile( const string& playerName ); 00061 bool loadServerMasterFile(); 00066 bool recordPlayerAction(TAction* action); 00067 00068 protected: 00073 TActionSequencer fActionSequencer; 00074 00082 TGameSC( bool actSeq, const string& gameDir, const string& gameName="" ); 00083 00089 virtual void PDBAction( TDataPackageList* block ); 00095 virtual void PDBFleet( TDataPackageList* block ); 00101 virtual void PDBGalaxy( TDataPackageList* block ); 00107 virtual void PDBGame( TDataPackageList* block ); 00113 virtual void PDBSystem( TDataPackageList* block ); 00118 void setActivePlayer( TPlayer* player ); 00119 00120 private: 00125 TPlayer* fActivePlayer; 00126 }; 00127 00128 00129 00130 00131 00132 #endif // __GAME_SC_INCLUDED 00133