summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/server.h')
-rw-r--r--pacman-c++/server.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/pacman-c++/server.h b/pacman-c++/server.h
index a5afbfe..41b800e 100644
--- a/pacman-c++/server.h
+++ b/pacman-c++/server.h
@@ -40,8 +40,10 @@ protected:
40 void initRoundMap(); 40 void initRoundMap();
41 41
42protected slots: 42protected slots:
43 /* called when a round is finished */ 43 /* called when a round is started/finished */
44 void setRoundFinished(bool value = true); 44 void startGame();
45 void stopGame(bool delay = false);
46 void setFinishRound();
45 47
46protected: 48protected:
47 QMap<Color::Color, QTcpSocket *> m_clientConnections; 49 QMap<Color::Color, QTcpSocket *> m_clientConnections;
@@ -66,7 +68,8 @@ protected:
66 unsigned int m_rounds; 68 unsigned int m_rounds;
67 /* current round, starting at 0 */ 69 /* current round, starting at 0 */
68 unsigned int m_curRound; 70 unsigned int m_curRound;
69 bool m_roundFinished; 71 bool m_running;
72 bool m_finishRound;
70 73
71 QTimer *m_tickTimer; 74 QTimer *m_tickTimer;
72 75