diff options
Diffstat (limited to 'pacman-c++/server.h')
| -rw-r--r-- | pacman-c++/server.h | 9 |
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 | ||
| 42 | protected slots: | 42 | protected 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 | ||
| 46 | protected: | 48 | protected: |
| 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 | ||
