diff options
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
| 57 | m_eating.append(setupEatingAnimation(Actor::Down)); | 57 | m_eating.append(setupEatingAnimation(Actor::Down)); |
| 58 | 58 | ||
| 59 | /* dieing animation */ | 59 | /* dieing animation */ |
| 60 | qWarning() << "color=" << Util::colorToString(m_color) << "zValue=" << zValue() << "dieing.z=" << 100 - m_color; | ||
| 61 | m_dieing = new QSequentialAnimationGroup(this); | 60 | m_dieing = new QSequentialAnimationGroup(this); |
| 62 | for (int i = 0; i < 11; i++) | 61 | for (int i = 0; i < 11; i++) |
| 63 | { | 62 | { |
| @@ -123,6 +122,11 @@ PixmapItem &Actor::icon() | |||
| 123 | return m_icon; | 122 | return m_icon; |
| 124 | } | 123 | } |
| 125 | 124 | ||
| 125 | const QString Actor::iconStr() | ||
| 126 | { | ||
| 127 | return QString(":/actor%1icon").arg(Util::floorLog2(m_color) + 1); | ||
| 128 | } | ||
| 129 | |||
| 126 | Actor::Movement Actor::direction() | 130 | Actor::Movement Actor::direction() |
| 127 | { | 131 | { |
| 128 | return m_direction; | 132 | return m_direction; |
