summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-02 19:05:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 19:05:34 +0300
commitf924674239571a40b0806136a49b4da3edcadbbf (patch)
tree5a5cd954acf5832e6cf01c59b8960d6b06657fa3 /src/gui/dialogsmanager.h
parent1003a7a74f72f17f59f4a74eacf95a1744a64506 (diff)
downloadmanaplus-f924674239571a40b0806136a49b4da3edcadbbf.tar.gz
manaplus-f924674239571a40b0806136a49b4da3edcadbbf.tar.bz2
manaplus-f924674239571a40b0806136a49b4da3edcadbbf.tar.xz
manaplus-f924674239571a40b0806136a49b4da3edcadbbf.zip
Move weight notification from playerhander.
Diffstat (limited to 'src/gui/dialogsmanager.h')
-rw-r--r--src/gui/dialogsmanager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/dialogsmanager.h b/src/gui/dialogsmanager.h
index b9625ae07..b45b3b12c 100644
--- a/src/gui/dialogsmanager.h
+++ b/src/gui/dialogsmanager.h
@@ -23,6 +23,7 @@
#ifndef GUI_DIALOGSMANAGER_H
#define GUI_DIALOGSMANAGER_H
+#include "listeners/attributelistener.h"
#include "listeners/playerdeathlistener.h"
#include <string>
@@ -31,7 +32,8 @@
class Window;
-class DialogsManager final : public PlayerDeathListener
+class DialogsManager final : public AttributeListener,
+ public PlayerDeathListener
{
public:
DialogsManager();
@@ -45,6 +47,10 @@ class DialogsManager final : public PlayerDeathListener
const bool modal);
void playerDeath() override final;
+
+ void attributeChanged(const int id,
+ const int oldVal,
+ const int newVal) override final;
};
extern DialogsManager *dialogsManager;