summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-02 17:56:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 17:56:13 +0300
commit1003a7a74f72f17f59f4a74eacf95a1744a64506 (patch)
tree59e3dfae9c470426dea48b4b3aa221c40800072e /src/being/localplayer.h
parentce2e90b35291abe32c47e21569a58e9eb22cc87b (diff)
downloadmv-1003a7a74f72f17f59f4a74eacf95a1744a64506.tar.gz
mv-1003a7a74f72f17f59f4a74eacf95a1744a64506.tar.bz2
mv-1003a7a74f72f17f59f4a74eacf95a1744a64506.tar.xz
mv-1003a7a74f72f17f59f4a74eacf95a1744a64506.zip
Move death dialog showing from playerhandler.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 46ed22cb8..dd5043572 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -31,6 +31,7 @@
#include "listeners/actorspritelistener.h"
#include "listeners/attributelistener.h"
+#include "listeners/playerdeathlistener.h"
#include "listeners/statlistener.h"
#include <vector>
@@ -49,6 +50,7 @@ class OkDialog;
class LocalPlayer final : public Being,
public ActorSpriteListener,
public AttributeListener,
+ public PlayerDeathListener,
public StatListener
{
public:
@@ -289,6 +291,8 @@ class LocalPlayer final : public Being,
*/
void optionChanged(const std::string &value) override final;
+ void playerDeath() override final;
+
/**
* set a following player.
*/