Fixed game state for server.

This commit is contained in:
lotodore
2007-08-20 20:47:09 +00:00
parent 67e81d1631
commit e08f8126aa
2 changed files with 3 additions and 4 deletions
+3
View File
@@ -103,6 +103,7 @@ ServerGameThread::SendToAllPlayers(boost::shared_ptr<NetPacket> packet)
void
ServerGameThread::Main()
{
SetState(SERVER_INITIAL_STATE::Instance());
GetSender().Run();
try
@@ -167,6 +168,7 @@ ServerGameThread::InternalStartGame()
void
ServerGameThread::InternalKickPlayer(unsigned playerId)
{
// TODO
// SessionWrapper tmpSession = GetSessionByUniquePlayerId(uniqueId);
// SessionError(tmpSession, ERR_NET_PLAYER_KICKED);
}
@@ -174,6 +176,7 @@ ServerGameThread::InternalKickPlayer(unsigned playerId)
void
ServerGameThread::AddComputerPlayer(boost::shared_ptr<PlayerData> player)
{
// TODO
m_computerPlayers.push_back(player);
}
-4
View File
@@ -25,8 +25,6 @@
#include <gui/guiinterface.h>
#include <gamedata.h>
#include <deque>
#define GAME_THREAD_TERMINATE_TIMEOUT 200
@@ -62,8 +60,6 @@ public:
protected:
typedef std::deque<SessionWrapper > SessionQueue;
// Main function of the thread.
virtual void Main();