diff options
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 8837bba..67a7e5f 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #include "point.h" | 1 | #include "point.h" |
| 2 | #include "constants.h" | 2 | #include "constants.h" |
| 3 | #include "actor.h" | ||
| 3 | 4 | ||
| 4 | namespace | 5 | namespace |
| 5 | { | 6 | { |
| @@ -15,3 +16,8 @@ Point::Point(QGraphicsItem *parent) | |||
| 15 | 16 | ||
| 16 | //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); |
| 17 | } | 18 | } |
| 19 | |||
| 20 | void Point::enter(Actor* actor) | ||
| 21 | { | ||
| 22 | actor->addRoundPoints(Constants::Game::point_value); | ||
| 23 | } | ||
