summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-05 18:37:34 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-05 18:37:34 -0400
commitbff134a0803f68a7bf69cf2f1121824137d4b2fb (patch)
tree45e069c4cb90fdf8c8c9f6ac297941d69d09e108 /src/being.h
parent5a9759680427154f379499cb3268f307bb860c22 (diff)
downloadmana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.tar.gz
mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.tar.bz2
mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.tar.xz
mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.zip
Moved code for hiding / showing player names from Player::logic() to a the configure listener system
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h
index a870ff0b..72c0d8b2 100644
--- a/src/being.h
+++ b/src/being.h
@@ -30,6 +30,7 @@
#include <string>
#include <vector>
+#include "configlistener.h"
#include "map.h"
#include "particlecontainer.h"
#include "position.h"
@@ -68,7 +69,7 @@ enum Gender
GENDER_UNSPECIFIED = 2
};
-class Being : public Sprite
+class Being : public Sprite, public ConfigListener
{
public:
enum Type
@@ -509,6 +510,8 @@ class Being : public Sprite
static void load();
+ void optionChanged(const std::string &value) {}
+
protected:
/**
* Sets the new path for this being.