diff options
Diffstat (limited to 'pacman-c++/server.h')
| -rw-r--r-- | pacman-c++/server.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pacman-c++/server.h b/pacman-c++/server.h index 826c701..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; |
| @@ -56,7 +62,13 @@ protected: | |||
| 56 | QHostAddress m_bindaddress; | 62 | QHostAddress m_bindaddress; |
| 57 | unsigned int m_port; | 63 | unsigned int m_port; |
| 58 | unsigned int m_maxplayers; | 64 | unsigned int m_maxplayers; |
| 65 | unsigned int m_rounds; // number of rounds (>= 1) | ||
| 59 | unsigned int m_numbots; | 66 | unsigned int m_numbots; |
| 67 | |||
| 68 | unsigned int m_curRound; // current round starting with 0 | ||
| 69 | |||
| 70 | QTimer *m_tickTimer; | ||
| 71 | |||
| 60 | }; | 72 | }; |
| 61 | 73 | ||
| 62 | #endif // SERVER_H | 74 | #endif // SERVER_H |
