summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/server.h')
-rw-r--r--pacman-c++/server.h8
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
41protected slots:
42 // TODO: call this when a pacman get's eaten
43 void onRoundFinished(); // called when a round is finished
44protected:
45 void initRoundMap(bool firstPacket = false); // creates new round map
46
41protected: 47protected:
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