diff options
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 2257b12..d7ebdb1 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -21,11 +21,10 @@ Point::Point(QGraphicsItem *parent) | |||
| 21 | setPixmap(*pixmap); | 21 | setPixmap(*pixmap); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | bool Point::enter(Actor *actor) | 24 | GameEntity::EnteredState Point::enter(Actor *actor) |
| 25 | { | 25 | { |
| 26 | actor->addRoundPoints(Constants::Game::point_value); | 26 | actor->addRoundPoints(Constants::Game::point_value); |
| 27 | m_eaten = true; | 27 | return DestroyedEntity; |
| 28 | return false; | ||
| 29 | } | 28 | } |
| 30 | 29 | ||
| 31 | void Point::onDie(Actor *actor) | 30 | void Point::onDie(Actor *actor) |
