summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-19 22:19:22 +0200
committermanuel <manuel@mausz.at>2011-04-19 22:19:22 +0200
commit11224354131c29f656fb7e5e439c6946aff13458 (patch)
treec86bad0422ef1388ed1fcd32894ea9b0436f82ca /pacman-c++/server.h
parentecd74970a9c9d41637289b3186ae1ffed1d2f7e2 (diff)
parent7a5e71759c00b2c77f7ee3287c366dd1b48b81ca (diff)
downloadfoop-11224354131c29f656fb7e5e439c6946aff13458.tar.gz
foop-11224354131c29f656fb7e5e439c6946aff13458.tar.bz2
foop-11224354131c29f656fb7e5e439c6946aff13458.zip
Merge branch 'master' of ssh://manuel.mausz.at/foop
Diffstat (limited to 'pacman-c++/server.h')
-rw-r--r--pacman-c++/server.h12
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
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;
@@ -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