summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-19 23:03:50 +0200
committermanuel <manuel@mausz.at>2011-04-19 23:03:50 +0200
commit58ba349f19f98fe3af5332188f5d3dfe4d076807 (patch)
tree6425c4c8e0bc033906c944b985655625ebd9e19d /pacman-c++/server.h
parent9e9bc7cd492bf6f897bc26818674a3919431fb99 (diff)
downloadfoop-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.h7
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
41protected slots: 42protected 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();
44protected:
45 void initRoundMap(bool firstPacket = false); // creates new round map
46 45
47protected: 46protected:
48 QMap<Color::Color, QTcpSocket *> m_clientConnections; 47 QMap<Color::Color, QTcpSocket *> m_clientConnections;