diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-19 21:56:37 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-19 21:56:37 +0200 |
| commit | eaf133fd08c9708fe718ef47451bed7ea803a46a (patch) | |
| tree | b3b9c2fca22bf4351aa854abd84e7a2f39ccbdb9 /pacman-c++/server.h | |
| parent | b6fec20dadaf71fc28961a4a6d720d1d665508e8 (diff) | |
| download | foop-eaf133fd08c9708fe718ef47451bed7ea803a46a.tar.gz foop-eaf133fd08c9708fe718ef47451bed7ea803a46a.tar.bz2 foop-eaf133fd08c9708fe718ef47451bed7ea803a46a.zip | |
Added rounds
rounds will end when all points are removed
TODO: end round when a pacman gets eaten
Diffstat (limited to 'pacman-c++/server.h')
| -rw-r--r-- | pacman-c++/server.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pacman-c++/server.h b/pacman-c++/server.h index fd1b571..dc8de88 100644 --- a/pacman-c++/server.h +++ b/pacman-c++/server.h | |||
| @@ -38,6 +38,12 @@ protected: | |||
| 38 | void colorizeBlocks(Transmission::map_t map); | 38 | void colorizeBlocks(Transmission::map_t map); |
| 39 | void botCalculate(Actor *actor); | 39 | void botCalculate(Actor *actor); |
| 40 | 40 | ||
| 41 | protected slots: | ||
| 42 | // TODO: call this when a pacman get's eaten | ||
| 43 | void onRoundFinished(); // called when a round is finished | ||
| 44 | protected: | ||
| 45 | void initRoundMap(bool firstPacket = false); // creates new round map | ||
| 46 | |||
| 41 | protected: | 47 | protected: |
| 42 | QMap<Color::Color, QTcpSocket *> m_clientConnections; | 48 | QMap<Color::Color, QTcpSocket *> m_clientConnections; |
| 43 | QList<Color::Color> m_bots; | 49 | QList<Color::Color> m_bots; |
| @@ -61,6 +67,8 @@ protected: | |||
| 61 | 67 | ||
| 62 | unsigned int m_curRound; // current round starting with 0 | 68 | unsigned int m_curRound; // current round starting with 0 |
| 63 | 69 | ||
| 70 | QTimer *m_tickTimer; | ||
| 71 | |||
| 64 | }; | 72 | }; |
| 65 | 73 | ||
| 66 | #endif // SERVER_H | 74 | #endif // SERVER_H |
