From bbd2a69a962d15f74a4afcb7b66462eac9fa5008 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 20 Apr 2011 02:19:08 +0200 Subject: game rounds finally implemented: - game rounds will be detected during the round AND - a new map will be send in the NEXT tick to the clients --- pacman-c++/server.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pacman-c++/server.h') diff --git a/pacman-c++/server.h b/pacman-c++/server.h index 6dd138b..a5afbfe 100644 --- a/pacman-c++/server.h +++ b/pacman-c++/server.h @@ -41,7 +41,7 @@ protected: protected slots: /* called when a round is finished */ - void onRoundFinished(); + void setRoundFinished(bool value = true); protected: QMap m_clientConnections; @@ -61,10 +61,12 @@ protected: QHostAddress m_bindaddress; unsigned int m_port; unsigned int m_maxplayers; - unsigned int m_rounds; // number of rounds (>= 1) unsigned int m_numbots; - - unsigned int m_curRound; // current round starting with 0 + /* number of rounds (>= 1) */ + unsigned int m_rounds; + /* current round, starting at 0 */ + unsigned int m_curRound; + bool m_roundFinished; QTimer *m_tickTimer; -- cgit v1.2.3