diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index a7ed33f8..403b4530 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -23,6 +23,7 @@ #define LOCALPLAYER_H #include "being.h" +#include "actorspritelistener.h" #include "gui/userpalette.h" @@ -109,7 +110,7 @@ enum /** * The local player character. */ -class LocalPlayer : public Being +class LocalPlayer : public Being, public ActorSpriteListener { public: /** @@ -164,6 +165,12 @@ class LocalPlayer : public Being void pickUp(FloorItem *item); /** + * Called when an ActorSprite has been destroyed. + * @param actorSprite the ActorSprite being destroyed. + */ + void actorSpriteDestroyed(const ActorSprite &actorSprite); + + /** * Sets the attack range. */ void setAttackRange(int range) { mAttackRange = range; } |