From 8135626bfe58cf605eda793122c049e8ec7ef31d Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 11 Apr 2011 14:53:08 +0200 Subject: minor movement improvements --- pacman-c++/actor.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pacman-c++/actor.h') 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: {}; QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction); - Color::Color getColor(); - PixmapItem &getIcon(); + Color::Color color(); + PixmapItem &icon(); + Movement direction(); bool isLocal(); void move(Movement direction); bool isMoving(); @@ -40,6 +41,9 @@ public: void addRoundPoints(unsigned int amount); void finishRound(); +private: + void moveByServer(Movement direction); + private: QPixmap m_pix; Color::Color m_color; -- cgit v1.2.3