From ce20694e0db010b5d65bdd2ee81a410efbf99e3d Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 2 May 2011 15:50:23 +0200 Subject: w000h00 --- pacman-c++/actor.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pacman-c++/actor.h') diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index eb04c71..e7d3ebc 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h @@ -34,9 +34,12 @@ public: PixmapItem &icon(); Movement direction(); - void resetAnimation(); + void setDirection(Movement direction); + void reset(); + bool hadReset(); bool isLocal(); void move(Movement direction); + void move(QPoint newpos); bool isMoving(); void die(); void eatingFruit(); @@ -44,13 +47,14 @@ public: void startEating(); void stopEating(); bool canEat(Actor *other, const QList &order); + virtual void onDie(Actor *); unsigned int getRoundPoints(); unsigned int getGamePoints(); void addRoundPoints(unsigned int amount); void finishRound(bool died = false); - static QPoint movementToPoint(const Actor::Movement direction); + static QPoint movementToPoint(const Movement direction); private: void moveByServer(Movement direction); @@ -61,6 +65,7 @@ private: Movement m_direction; PixmapItem m_icon; bool m_local; + bool m_reset; GaplessAudioPlayer *m_wakaPlayer; unsigned int m_roundPoints; -- cgit v1.2.3