From 0c4d6493ce9d1215c10d5f2942d373c4f37204b5 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 2 May 2011 20:42:37 +0200 Subject: add eating overlay --- pacman-c++/actor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pacman-c++/actor.cpp') diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 757003e..de8d77e 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp @@ -57,7 +57,6 @@ Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) m_eating.append(setupEatingAnimation(Actor::Down)); /* dieing animation */ - qWarning() << "color=" << Util::colorToString(m_color) << "zValue=" << zValue() << "dieing.z=" << 100 - m_color; m_dieing = new QSequentialAnimationGroup(this); for (int i = 0; i < 11; i++) { @@ -123,6 +122,11 @@ PixmapItem &Actor::icon() return m_icon; } +const QString Actor::iconStr() +{ + return QString(":/actor%1icon").arg(Util::floorLog2(m_color) + 1); +} + Actor::Movement Actor::direction() { return m_direction; -- cgit v1.2.3