diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-11 12:37:29 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-11 12:37:29 +0200 |
| commit | 51a3559e5df31018d7de14357f83c24e7e508d7e (patch) | |
| tree | 89db0899d182dd5b3b770b07c8646dd80c915d4e /pacman-c++/bonuspoint.cpp | |
| parent | 98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02 (diff) | |
| download | foop-51a3559e5df31018d7de14357f83c24e7e508d7e.tar.gz foop-51a3559e5df31018d7de14357f83c24e7e508d7e.tar.bz2 foop-51a3559e5df31018d7de14357f83c24e7e508d7e.zip | |
progress
Diffstat (limited to 'pacman-c++/bonuspoint.cpp')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index 3a72243..2a772d5 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp | |||
| @@ -20,7 +20,10 @@ BonusPoint::BonusPoint(QGraphicsItem *parent) | |||
| 20 | setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); | 20 | setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | void BonusPoint::enter(Actor* actor) | 23 | bool BonusPoint::enter(Actor* actor) |
| 24 | { | 24 | { |
| 25 | actor->addRoundPoints(Constants::Game::bonus_point_value); | 25 | actor->addRoundPoints(Constants::Game::bonus_point_value); |
| 26 | actor->eatingCherry(); | ||
| 27 | m_eaten = true; | ||
| 28 | return false; | ||
| 26 | } | 29 | } |
