summaryrefslogtreecommitdiff
path: root/server/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/game.h')
-rw-r--r--server/game.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/game.h b/server/game.h
index 5fd85fd..1e293f6 100644
--- a/server/game.h
+++ b/server/game.h
@@ -9,6 +9,7 @@
#include "wall.h"
#include "client.h"
#include "../common/action.h"
+#include "../common/cyclicint.h"
class Game : public boost::enable_shared_from_this<Game> {
public:
@@ -19,6 +20,8 @@ class Game : public boost::enable_shared_from_this<Game> {
~Game();
private:
+ typedef CyclicInt<4> PlayerNum;
+
class Player {
public:
Client::p client;
@@ -76,7 +79,7 @@ class Game : public boost::enable_shared_from_this<Game> {
Player players[4];
- int current_player;
+ PlayerNum current_player;
int awaiting_players;