summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-04 22:22:40 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-05 01:04:58 -0600
commitdd1463241c00f38de5855b9e9869b773f683373f (patch)
treea5ceea8ccfded6f48214021bc7481a98b81abebc /src/being.h
parent154ea41225505eee0c77652a04738d845a2e93cd (diff)
downloadMana-dd1463241c00f38de5855b9e9869b773f683373f.tar.gz
Mana-dd1463241c00f38de5855b9e9869b773f683373f.tar.bz2
Mana-dd1463241c00f38de5855b9e9869b773f683373f.tar.xz
Mana-dd1463241c00f38de5855b9e9869b773f683373f.zip
Have Being manage speech creation and add permissions to events
The Being and Player Chat events now have the precomuted permissions for SPEECH_LOG and SPEECH_FLOAT. The Being class now acts on those events to show speech (if SPEECH_FLOAT is present). ChatWindow now checks for the SPEECH_LOG permission. Reviewed-by: Freeyorp
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 a379bdaa..a55e2d3a 100644
--- a/src/being.h
+++ b/src/being.h
@@ -24,6 +24,7 @@
#include "actorsprite.h"
#include "configlistener.h"
+#include "listener.h"
#include "map.h"
#include "particlecontainer.h"
#include "position.h"
@@ -62,7 +63,7 @@ enum Gender
GENDER_UNSPECIFIED = 2
};
-class Being : public ActorSprite, public ConfigListener
+class Being : public ActorSprite, public ConfigListener, public Mana::Listener
{
public:
/**
@@ -493,6 +494,8 @@ class Being : public ActorSprite, public ConfigListener
void talkTo();
+ void event(const std::string &channel, const Mana::Event &event);
+
protected:
/**
* Sets the new path for this being.