diff options
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index b4eae4e..4f76007 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -13,17 +13,16 @@ Point::Point(QGraphicsItem *parent) | |||
| 13 | if (pixmap == NULL) | 13 | if (pixmap == NULL) |
| 14 | pixmap = new QPixmap(":/points"); | 14 | pixmap = new QPixmap(":/points"); |
| 15 | setPixmap(*pixmap); | 15 | setPixmap(*pixmap); |
| 16 | |||
| 17 | //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); | ||
| 18 | } | 16 | } |
| 19 | 17 | ||
| 20 | bool Point::enter(Actor* actor) | 18 | bool Point::enter(Actor *actor) |
| 21 | { | 19 | { |
| 22 | actor->addRoundPoints(Constants::Game::point_value); | 20 | actor->addRoundPoints(Constants::Game::point_value); |
| 23 | m_eaten = true; | 21 | m_eaten = true; |
| 24 | return false; | 22 | return false; |
| 25 | } | 23 | } |
| 26 | 24 | ||
| 27 | void Point::onDie(Actor* actor) | 25 | void Point::onDie(Actor *actor) |
| 28 | { | 26 | { |
| 27 | //TODO | ||
| 29 | } | 28 | } |
