diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-10 01:31:55 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-10 01:31:55 +0200 |
| commit | 0f111967d746b5d9d74f62ad5f1415ab156ff449 (patch) | |
| tree | 52b591bdb5d81c70cf49445dd71b26417544949c /pacman-c++/actor.cpp | |
| parent | 18ca65a550c25ed69dcf8b75e7b8862458e11025 (diff) | |
| download | foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.tar.gz foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.tar.bz2 foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.zip | |
transmit game score
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 5 |
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 | ||
| 13 | Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) | 13 | Actor::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 | ||
| 188 | void Actor::enqueue() | 189 | void Actor::enqueue() |
| 189 | { | 190 | { |
| 190 | if (isMoving()) | 191 | if (isMoving()) |
| 191 | AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); | 192 | AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); |
| 192 | } | 193 | } |
