diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-11 12:43:41 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-11 12:43:41 +0200 |
| commit | 46cba78d4017cad17550a1169c7deb7120710c2a (patch) | |
| tree | 8db6f9fc4674cf96c5fc4842a71718e70fd6d8a2 /pacman-c++ | |
| parent | c88b773a4e95eb903e47cdbe8063bd25e2a70fda (diff) | |
| download | foop-46cba78d4017cad17550a1169c7deb7120710c2a.tar.gz foop-46cba78d4017cad17550a1169c7deb7120710c2a.tar.bz2 foop-46cba78d4017cad17550a1169c7deb7120710c2a.zip | |
added missing file
Diffstat (limited to 'pacman-c++')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 1 | ||||
| -rw-r--r-- | pacman-c++/gameentity.cpp | 10 | ||||
| -rw-r--r-- | pacman-c++/sceneholder.cpp | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index 2a772d5..2b5500b 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp | |||
| @@ -23,7 +23,6 @@ BonusPoint::BonusPoint(QGraphicsItem *parent) | |||
| 23 | bool BonusPoint::enter(Actor* actor) | 23 | bool BonusPoint::enter(Actor* actor) |
| 24 | { | 24 | { |
| 25 | actor->addRoundPoints(Constants::Game::bonus_point_value); | 25 | actor->addRoundPoints(Constants::Game::bonus_point_value); |
| 26 | actor->eatingCherry(); | ||
| 27 | m_eaten = true; | 26 | m_eaten = true; |
| 28 | return false; | 27 | return false; |
| 29 | } | 28 | } |
diff --git a/pacman-c++/gameentity.cpp b/pacman-c++/gameentity.cpp new file mode 100644 index 0000000..e8743df --- /dev/null +++ b/pacman-c++/gameentity.cpp | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | |||
| 2 | #include "gameentity.h" | ||
| 3 | |||
| 4 | |||
| 5 | GameEntity::GameEntity() | ||
| 6 | : m_eaten(false) | ||
| 7 | { | ||
| 8 | |||
| 9 | } | ||
| 10 | |||
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index 1596ba1..e4429f6 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp | |||
| @@ -104,6 +104,7 @@ void SceneHolder::updateMap(const Transmission::map_t& map) | |||
| 104 | visualMap[x][y] = item; | 104 | visualMap[x][y] = item; |
| 105 | if (oldItem != NULL) | 105 | if (oldItem != NULL) |
| 106 | { | 106 | { |
| 107 | oldItem->onDie(); | ||
| 107 | m_scene->removeItem(item); | 108 | m_scene->removeItem(item); |
| 108 | delete oldItem; | 109 | delete oldItem; |
| 109 | } | 110 | } |
