networking parse command

This commit is contained in:
j3d1 2016-09-28 03:35:05 +02:00
parent ef38da703e
commit eaff023ed3
6 changed files with 14 additions and 56 deletions

View file

@ -70,7 +70,7 @@ namespace game {
return playerId;
}
void State::playerLeft(int playerId)
void State::quitPlayer(int playerId)
{
(void) playerId;
}

View file

@ -37,7 +37,7 @@ namespace game {
// The upper layer (network/renderer) calling these three functions
// should keep id's unique and give one (network) input an id.
int addPlayer();
void playerLeft(int playerId);
void quitPlayer(int playerId);
void commandForPlayer(int playerId, Command *cmd);
// lookup. return nullptr on invalid playerId