New log object for network/internet games. Preliminary code.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user