diff options
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 6ca981c..f56407b 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp | |||
| @@ -216,11 +216,18 @@ void Actor::die() | |||
| 216 | AudioManager::self()->play(Sound::Die); | 216 | AudioManager::self()->play(Sound::Die); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void Actor::eatingCherry() | 219 | void Actor::eatingFruit() |
| 220 | { | 220 | { |
| 221 | if (!m_local) | 221 | if (!m_local) |
| 222 | return; | 222 | return; |
| 223 | AudioManager::self()->play(Sound::EatingCherry); | 223 | AudioManager::self()->play(Sound::EatingFruit); |
| 224 | } | ||
| 225 | |||
| 226 | void Actor::eatingPacman() | ||
| 227 | { | ||
| 228 | if (!m_local) | ||
| 229 | return; | ||
| 230 | AudioManager::self()->play(Sound::EatingGhost); | ||
| 224 | } | 231 | } |
| 225 | 232 | ||
| 226 | void Actor::startEating() | 233 | void Actor::startEating() |
