From 41a31420cf091aeb4e986503387855d41e550106 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 25 Apr 2011 14:39:00 +0200 Subject: - add intro sound on every round - add dieing sound - add dieing animation - add die on moving onto colorized block --- pacman-c++/server.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pacman-c++/server.h') 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: void initRoundMap(); protected slots: - /* called when a round is finished */ - void setRoundFinished(bool value = true); + /* called when a round is started/finished */ + void startGame(); + void stopGame(bool delay = false); + void setFinishRound(); protected: QMap m_clientConnections; @@ -66,7 +68,8 @@ protected: unsigned int m_rounds; /* current round, starting at 0 */ unsigned int m_curRound; - bool m_roundFinished; + bool m_running; + bool m_finishRound; QTimer *m_tickTimer; -- cgit v1.2.3