diff options
| author | manuel <manuel@mausz.at> | 2011-05-10 22:28:58 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-05-10 22:28:58 +0200 |
| commit | 1a6c940ed9d7f6136da0e13148314072665342c5 (patch) | |
| tree | 467b259d966ea1ddf9f66440066f57cf3eed68c4 /pacman-c++/common/actor.cpp | |
| parent | cc1bb779661217171418adb0ddbd1ce01815463b (diff) | |
| download | foop-1a6c940ed9d7f6136da0e13148314072665342c5.tar.gz foop-1a6c940ed9d7f6136da0e13148314072665342c5.tar.bz2 foop-1a6c940ed9d7f6136da0e13148314072665342c5.zip | |
- refactorized audio once more: audio is now a plugin which gets loaded at runtime
- thus server has no dependency to phonon any more
- remove client dependency to qtnetwork
- fix enet deinitialization on windows
Diffstat (limited to 'pacman-c++/common/actor.cpp')
| -rw-r--r-- | pacman-c++/common/actor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pacman-c++/common/actor.cpp b/pacman-c++/common/actor.cpp index de8d77e..83a54e3 100644 --- a/pacman-c++/common/actor.cpp +++ b/pacman-c++/common/actor.cpp | |||
| @@ -296,21 +296,21 @@ void Actor::die() | |||
| 296 | setZValue(zValue() * 10); | 296 | setZValue(zValue() * 10); |
| 297 | m_dieing->start(); | 297 | m_dieing->start(); |
| 298 | if (m_local) | 298 | if (m_local) |
| 299 | AudioManager::self()->play(Sound::Die); | 299 | AudioManager::self()->audioPlayer()->play(Sound::Die); |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | void Actor::eatingFruit() | 302 | void Actor::eatingFruit() |
| 303 | { | 303 | { |
| 304 | if (!m_local) | 304 | if (!m_local) |
| 305 | return; | 305 | return; |
| 306 | AudioManager::self()->play(Sound::EatingFruit); | 306 | AudioManager::self()->audioPlayer()->play(Sound::EatingFruit); |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | void Actor::eatingPacman() | 309 | void Actor::eatingPacman() |
| 310 | { | 310 | { |
| 311 | if (!m_local) | 311 | if (!m_local) |
| 312 | return; | 312 | return; |
| 313 | AudioManager::self()->play(Sound::EatingGhost); | 313 | AudioManager::self()->audioPlayer()->play(Sound::EatingGhost); |
| 314 | } | 314 | } |
| 315 | 315 | ||
| 316 | void Actor::startEating() | 316 | void Actor::startEating() |
