00001 // $Id: game-server_8h-source.html,v 1.1 2002/06/20 17:09:51 mkrohn5 Exp $ 00002 00003 // Game Server 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_SERVER_INCLUDED 00020 #define __GAME_SERVER_INCLUDED 00021 00022 #include "admin/game-sc.h" 00023 00024 00025 00026 00027 00028 //---------------------------------------- class TGameServer ---------------------------------------- 00029 00039 class TGameServer : public TGameSC 00040 { 00041 public: 00049 TGameServer( const string& gameDir, const string& gameName ); 00054 virtual ~TGameServer(); 00055 00060 bool backupGameFiles() const; 00065 void executeActions(); 00069 void incrementTurn(); 00075 bool loadPlayerOrderFiles(); 00080 bool savePlayerDataFiles() const; 00081 00082 protected: 00089 virtual void PDBLoadOrders( TDataPackageList* block ); 00090 00091 private: 00092 void addStandardActions(); 00093 }; 00094 00095 00096 00097 00098 00099 #endif // __GAME_SERVER_INCLUDED 00100