diff options
| author | manuel <manuel@mausz.at> | 2011-04-19 23:03:50 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-19 23:03:50 +0200 |
| commit | 58ba349f19f98fe3af5332188f5d3dfe4d076807 (patch) | |
| tree | 6425c4c8e0bc033906c944b985655625ebd9e19d /pacman-c++/server.h | |
| parent | 9e9bc7cd492bf6f897bc26818674a3919431fb99 (diff) | |
| download | foop-58ba349f19f98fe3af5332188f5d3dfe4d076807.tar.gz foop-58ba349f19f98fe3af5332188f5d3dfe4d076807.tar.bz2 foop-58ba349f19f98fe3af5332188f5d3dfe4d076807.zip | |
nicer method of ending rounds
Diffstat (limited to 'pacman-c++/server.h')
| -rw-r--r-- | pacman-c++/server.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pacman-c++/server.h b/pacman-c++/server.h index dc8de88..6dd138b 100644 --- a/pacman-c++/server.h +++ b/pacman-c++/server.h | |||
| @@ -37,12 +37,11 @@ protected: | |||
| 37 | QPoint addRandomPoint(Transmission::map_t map, Transmission::field_t type = Transmission::bonuspoint); | 37 | QPoint addRandomPoint(Transmission::map_t map, Transmission::field_t type = Transmission::bonuspoint); |
| 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 | void initRoundMap(); | ||
| 40 | 41 | ||
| 41 | protected slots: | 42 | protected slots: |
| 42 | // TODO: call this when a pacman get's eaten | 43 | /* called when a round is finished */ |
| 43 | void onRoundFinished(); // called when a round is finished | 44 | void onRoundFinished(); |
| 44 | protected: | ||
| 45 | void initRoundMap(bool firstPacket = false); // creates new round map | ||
| 46 | 45 | ||
| 47 | protected: | 46 | protected: |
| 48 | QMap<Color::Color, QTcpSocket *> m_clientConnections; | 47 | QMap<Color::Color, QTcpSocket *> m_clientConnections; |
