diff options
| author | manuel <manuel@mausz.at> | 2011-04-25 14:39:00 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-25 14:39:00 +0200 |
| commit | 41a31420cf091aeb4e986503387855d41e550106 (patch) | |
| tree | ffbe0be5f9630a0bab2deb0b5df37c174bf40db1 /pacman-c++/point.cpp | |
| parent | bbd2a69a962d15f74a4afcb7b66462eac9fa5008 (diff) | |
| download | foop-41a31420cf091aeb4e986503387855d41e550106.tar.gz foop-41a31420cf091aeb4e986503387855d41e550106.tar.bz2 foop-41a31420cf091aeb4e986503387855d41e550106.zip | |
- add intro sound on every round
- add dieing sound
- add dieing animation
- add die on moving onto colorized block
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) |
