summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/actor.cpp')
-rw-r--r--pacman-c++/actor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp
index 51d3818..bd50a3c 100644
--- a/pacman-c++/actor.cpp
+++ b/pacman-c++/actor.cpp
@@ -11,7 +11,8 @@ static QVariant myBooleanInterpolator(const bool &start, const bool &end, qreal
11} 11}
12 12
13Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) 13Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent)
14 : PixmapItem(parent), m_color(color), m_direction(Actor::None), m_local(local) 14 : PixmapItem(parent), m_color(color), m_direction(Actor::None), m_local(local),
15 m_roundPoints(0), m_gamePoints(0)
15{ 16{
16 m_pix = ":/" + QString("actor%1").arg((m_color >> 1) + 1); 17 m_pix = ":/" + QString("actor%1").arg((m_color >> 1) + 1);
17 /* DON'T set any pixmap here. we've a pixmap in the animation 18 /* DON'T set any pixmap here. we've a pixmap in the animation
@@ -186,7 +187,7 @@ bool Actor::isMoving()
186} 187}
187 188
188void Actor::enqueue() 189void Actor::enqueue()
189{ 190{
190 if (isMoving()) 191 if (isMoving())
191 AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); 192 AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka);
192} 193}