From 41a31420cf091aeb4e986503387855d41e550106 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 25 Apr 2011 14:39:00 +0200 Subject: - add intro sound on every round - add dieing sound - add dieing animation - add die on moving onto colorized block --- pacman-c++/actor.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pacman-c++/actor.h') diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index 389d7c6..eb04c71 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h @@ -16,7 +16,7 @@ Q_OBJECT public: enum Movement { - None = 0, + None = 0, Left, Right, Up, @@ -34,7 +34,7 @@ public: PixmapItem &icon(); Movement direction(); - void resetDirection(); + void resetAnimation(); bool isLocal(); void move(Movement direction); bool isMoving(); @@ -48,7 +48,7 @@ public: unsigned int getRoundPoints(); unsigned int getGamePoints(); void addRoundPoints(unsigned int amount); - void finishRound(); + void finishRound(bool died = false); static QPoint movementToPoint(const Actor::Movement direction); @@ -69,6 +69,7 @@ private: QList m_images; QList m_eating; QParallelAnimationGroup *m_moving; + QSequentialAnimationGroup *m_dieing; }; #endif // ACTOR_H -- cgit v1.2.3