The console server can now be fully used for a single game. The first player to join the game is admin, he can start the game and kick players.
However, if the admin player leaves, a new game can only be started if all players have left before (this is a bug, admin status should be passed to another player).
This commit is contained in:
@@ -52,6 +52,8 @@ public:
|
||||
const std::string &pwd,
|
||||
const std::string &playerName);
|
||||
|
||||
void SendKickPlayer(const std::string &playerName);
|
||||
void SendStartEvent();
|
||||
void SendPlayerAction();
|
||||
void SendChatMessage(const std::string &msg);
|
||||
|
||||
@@ -89,6 +91,7 @@ protected:
|
||||
void MapPlayerDataList();
|
||||
const PlayerDataList &GetPlayerDataList() const;
|
||||
boost::shared_ptr<PlayerData> GetPlayerDataByUniqueId(unsigned id);
|
||||
boost::shared_ptr<PlayerData> GetPlayerDataByName(const std::string &name);
|
||||
|
||||
void RemoveDisconnectedPlayers();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user