diff options
| author | manuel <manuel@mausz.at> | 2011-04-25 14:39:00 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-25 14:39:00 +0200 |
| commit | 41a31420cf091aeb4e986503387855d41e550106 (patch) | |
| tree | ffbe0be5f9630a0bab2deb0b5df37c174bf40db1 /pacman-c++/server.h | |
| parent | bbd2a69a962d15f74a4afcb7b66462eac9fa5008 (diff) | |
| download | foop-41a31420cf091aeb4e986503387855d41e550106.tar.gz foop-41a31420cf091aeb4e986503387855d41e550106.tar.bz2 foop-41a31420cf091aeb4e986503387855d41e550106.zip | |
- add intro sound on every round
- add dieing sound
- add dieing animation
- add die on moving onto colorized block
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 | ||
