From bbd2a69a962d15f74a4afcb7b66462eac9fa5008 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 20 Apr 2011 02:19:08 +0200 Subject: game rounds finally implemented: - game rounds will be detected during the round AND - a new map will be send in the NEXT tick to the clients --- pacman-c++/sceneholder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pacman-c++/sceneholder.h') diff --git a/pacman-c++/sceneholder.h b/pacman-c++/sceneholder.h index c61de58..9340850 100644 --- a/pacman-c++/sceneholder.h +++ b/pacman-c++/sceneholder.h @@ -16,6 +16,7 @@ public: SceneHolder(QObject *parent = 0); virtual ~SceneHolder() {}; + void reset(); unsigned int pointsLeft(); void updateMap(const Transmission::map_t& map); void updateMap(const Transmission::map_t& map, const unsigned int x, const unsigned int y); @@ -56,7 +57,7 @@ protected: /* a actor can only eat his upper neighbour * the order of the neighbours is determined by the colors order (sent from server) * please note that !pl1.canEat(pl2, ...) doesn't necessarily mean that pl2 can eat pl1 - * order MUST be in this format: [col1, [col2, ..., colN], col1] + * order MUST be in this format: [col1, [col2 ... colN], col1] */ QList m_eatingorder; -- cgit v1.2.3