diff options
| author | manuel <manuel@mausz.at> | 2011-04-12 16:22:19 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-12 16:22:19 +0200 |
| commit | fae7c3377c8995b217e620c5cf1e963b3ab1e84a (patch) | |
| tree | 61a091e2799dda061c227be54c39a61a7b83daca /pacman-c++/point.cpp | |
| parent | dbeba838ea813b620ec571265c8ea417403fc81c (diff) | |
| download | foop-fae7c3377c8995b217e620c5cf1e963b3ab1e84a.tar.gz foop-fae7c3377c8995b217e620c5cf1e963b3ab1e84a.tar.bz2 foop-fae7c3377c8995b217e620c5cf1e963b3ab1e84a.zip | |
finding out which actor has eaten which element didn't work correctly. instead of checking that on client side the server now just sends the id of the actor withing the explicit empty id data field
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 35266f6..54c0ee4 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -28,5 +28,11 @@ bool Point::enter(Actor *actor) | |||
| 28 | 28 | ||
| 29 | void Point::onDie(Actor *actor) | 29 | void Point::onDie(Actor *actor) |
| 30 | { | 30 | { |
| 31 | //TODO | 31 | AudioPlayer *player = actor->wakaPlayer(); |
| 32 | qDebug() << "onDie" << player; | ||
| 33 | if (player == NULL) | ||
| 34 | return; | ||
| 35 | if (player->state() != Phonon::PlayingState) | ||
| 36 | player->play(); | ||
| 37 | player->setMuted(false); | ||
| 32 | } | 38 | } |
