summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.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/gui/dialogsmanager.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/gui/dialogsmanager.h')
-rw-r--r--src/gui/dialogsmanager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/dialogsmanager.h b/src/gui/dialogsmanager.h
index 9c7dc0d46..b9625ae07 100644
--- a/src/gui/dialogsmanager.h
+++ b/src/gui/dialogsmanager.h
@@ -23,15 +23,19 @@
#ifndef GUI_DIALOGSMANAGER_H
#define GUI_DIALOGSMANAGER_H
+#include "listeners/playerdeathlistener.h"
+
#include <string>
#include "localconsts.h"
class Window;
-class DialogsManager final
+class DialogsManager final : public PlayerDeathListener
{
public:
+ DialogsManager();
+
static void closeDialogs();
static void createUpdaterWindow();
@@ -39,6 +43,10 @@ class DialogsManager final
static Window *openErrorDialog(const std::string &header,
const std::string &message,
const bool modal);
+
+ void playerDeath() override final;
};
+extern DialogsManager *dialogsManager;
+
#endif // GUI_DIALOGSMANAGER_H