New log object for network/internet games. Preliminary code.

This commit is contained in:
lotodore
2011-01-03 18:41:28 +00:00
parent 924d6a38b7
commit ddaf311c12
11 changed files with 50 additions and 37 deletions
+4 -2
View File
@@ -38,12 +38,13 @@ class ServerDBInterface;
class ConfigFile;
struct GameData;
class Game;
class Log;
class ServerGame : public boost::enable_shared_from_this<ServerGame>
{
public:
ServerGame(
boost::shared_ptr<ServerLobbyThread> lobbyThread, u_int32_t id, const std::string &name, const std::string &pwd, const GameData &gameData, unsigned adminPlayerId, GuiInterface &gui, ConfigFile *playerConfig);
boost::shared_ptr<ServerLobbyThread> lobbyThread, u_int32_t id, const std::string &name, const std::string &pwd, const GameData &gameData, unsigned adminPlayerId, GuiInterface &gui, ConfigFile &playerConfig, Log &serverLog);
virtual ~ServerGame();
void Init();
@@ -194,7 +195,8 @@ private:
DB_id m_dbId;
const std::string m_name;
const std::string m_password;
ConfigFile *m_playerConfig;
ConfigFile &m_playerConfig;
Log &m_serverLog;
unsigned m_gameNum;
unsigned m_curPetitionId;
unsigned m_doNotAutoKickSmallDelaySec;