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++/point.cpp | |
| parent | 98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02 (diff) | |
| download | foop-51a3559e5df31018d7de14357f83c24e7e508d7e.tar.gz foop-51a3559e5df31018d7de14357f83c24e7e508d7e.tar.bz2 foop-51a3559e5df31018d7de14357f83c24e7e508d7e.zip | |
progress
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 67a7e5f..05bd277 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -17,7 +17,9 @@ Point::Point(QGraphicsItem *parent) | |||
| 17 | //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); | 17 | //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | void Point::enter(Actor* actor) | 20 | bool Point::enter(Actor* actor) |
| 21 | { | 21 | { |
| 22 | actor->addRoundPoints(Constants::Game::point_value); | 22 | actor->addRoundPoints(Constants::Game::point_value); |
| 23 | m_eaten = true; | ||
| 24 | return false; | ||
| 23 | } | 25 | } |
