summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/sceneholder.h')
-rw-r--r--pacman-c++/sceneholder.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/pacman-c++/sceneholder.h b/pacman-c++/sceneholder.h
index 418f16b..69ee598 100644
--- a/pacman-c++/sceneholder.h
+++ b/pacman-c++/sceneholder.h
@@ -21,6 +21,8 @@ public:
21 void updateMap(const Transmission::map_t& map, const unsigned int x, const unsigned int y); 21 void updateMap(const Transmission::map_t& map, const unsigned int x, const unsigned int y);
22 void setColor(Color::Color color = Color::none); 22 void setColor(Color::Color color = Color::none);
23 Color::Color color(); 23 Color::Color color();
24 void setEatingOrder(QList<Color::Color> &order);
25 QList<Color::Color> &eatingOrder();
24 26
25private slots: 27private slots:
26 void decrementPoints(); 28 void decrementPoints();
@@ -46,6 +48,13 @@ protected:
46 /* my local color */ 48 /* my local color */
47 Color::Color m_color; 49 Color::Color m_color;
48 50
51 /* a actor can only eat his upper neighbour
52 * the order of the neighbours is determined by the colors order (sent from server)
53 * please note that !pl1.canEat(pl2, ...) doesn't necessarily mean that pl2 can eat pl1
54 * order MUST be in this format: [col1, [col2, ..., colN], col1]
55 */
56 QList<Color::Color> m_eatingorder;
57
49 /* points left before round ends */ 58 /* points left before round ends */
50 unsigned int m_pointsLeft; 59 unsigned int m_pointsLeft;
51}; 60};