From 0f111967d746b5d9d74f62ad5f1415ab156ff449 Mon Sep 17 00:00:00 2001 From: totycro Date: Sun, 10 Apr 2011 01:31:55 +0200 Subject: transmit game score --- pacman-c++/actor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pacman-c++/actor.cpp') 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 } Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) - : PixmapItem(parent), m_color(color), m_direction(Actor::None), m_local(local) + : PixmapItem(parent), m_color(color), m_direction(Actor::None), m_local(local), + m_roundPoints(0), m_gamePoints(0) { m_pix = ":/" + QString("actor%1").arg((m_color >> 1) + 1); /* DON'T set any pixmap here. we've a pixmap in the animation @@ -186,7 +187,7 @@ bool Actor::isMoving() } void Actor::enqueue() -{ +{ if (isMoving()) AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); } -- cgit v1.2.3