summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-11 14:53:08 +0200
committermanuel <manuel@mausz.at>2011-04-11 14:53:08 +0200
commit8135626bfe58cf605eda793122c049e8ec7ef31d (patch)
tree1b21a6c595c3df5113caab286b4379589d6b826f /pacman-c++/actor.h
parentc68e77cac9558316ac16d58c0f6b888599ab021a (diff)
downloadfoop-8135626bfe58cf605eda793122c049e8ec7ef31d.tar.gz
foop-8135626bfe58cf605eda793122c049e8ec7ef31d.tar.bz2
foop-8135626bfe58cf605eda793122c049e8ec7ef31d.zip
minor movement improvements
Diffstat (limited to 'pacman-c++/actor.h')
-rw-r--r--pacman-c++/actor.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h
index 19d672b..d1875f1 100644
--- a/pacman-c++/actor.h
+++ b/pacman-c++/actor.h
@@ -27,8 +27,9 @@ public:
27 {}; 27 {};
28 28
29 QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction); 29 QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction);
30 Color::Color getColor(); 30 Color::Color color();
31 PixmapItem &getIcon(); 31 PixmapItem &icon();
32 Movement direction();
32 bool isLocal(); 33 bool isLocal();
33 void move(Movement direction); 34 void move(Movement direction);
34 bool isMoving(); 35 bool isMoving();
@@ -41,6 +42,9 @@ public:
41 void finishRound(); 42 void finishRound();
42 43
43private: 44private:
45 void moveByServer(Movement direction);
46
47private:
44 QPixmap m_pix; 48 QPixmap m_pix;
45 Color::Color m_color; 49 Color::Color m_color;
46 Movement m_direction; 50 Movement m_direction;