Server feedback after report game.

This commit is contained in:
lotodore
2012-04-09 10:22:24 +00:00
parent dbdd135bc7
commit ed43fa107c
5 changed files with 55 additions and 8 deletions
+14 -1
View File
@@ -52,7 +52,8 @@ ServerGame::ServerGame(boost::shared_ptr<ServerLobbyThread> lobbyThread, u_int32
m_gameData(gameData), m_curState(NULL), m_id(id), m_name(name),
m_password(pwd), m_creatorPlayerDBId(creatorPlayerDBId), m_playerConfig(playerConfig),
m_gameNum(1), m_curPetitionId(1), m_voteKickTimer(lobbyThread->GetIOService()),
m_stateTimer1(lobbyThread->GetIOService()), m_stateTimer2(lobbyThread->GetIOService())
m_stateTimer1(lobbyThread->GetIOService()), m_stateTimer2(lobbyThread->GetIOService()),
m_isNameReported(false)
{
LOG_VERBOSE("Game object " << GetId() << " created.");
}
@@ -724,6 +725,18 @@ ServerGame::GetAndResetReactivatePlayers()
return tmpList;
}
void
ServerGame::SetNameReported()
{
m_isNameReported = true;
}
bool
ServerGame::IsNameReported() const
{
return m_isNameReported;
}
void
ServerGame::AddComputerPlayer(boost::shared_ptr<PlayerData> player)
{