summaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:11:54 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:12 +0200
commit1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 (patch)
tree1fe58c53388054ced122b5327e33fc2851a0606a /src/event.cpp
parent30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (diff)
downloadmana-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.gz
mana-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.bz2
mana-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.xz
mana-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.zip
Moved Channels to Mana::Event::Channel
Acked-by: Jared Adams
Diffstat (limited to 'src/event.cpp')
-rw-r--r--src/event.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.cpp b/src/event.cpp
index c8de2ffd..d1d12242 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -26,7 +26,7 @@
namespace Mana
{
-ListenMap Event::mBindings;
+Event::ListenMap Event::mBindings;
Event::~Event()
{
@@ -215,7 +215,7 @@ bool Event::hasActor(const std::string &key) const
// Triggers
-void Event::trigger(Channels channel, const Event &event)
+void Event::trigger(Channel channel, const Event &event)
{
ListenMap::iterator it = mBindings.find(channel);
@@ -232,12 +232,12 @@ void Event::trigger(Channels channel, const Event &event)
}
}
-void Event::bind(Listener *listener, Channels channel)
+void Event::bind(Listener *listener, Channel channel)
{
mBindings[channel].insert(listener);
}
-void Event::unbind(Listener *listener, Channels channel)
+void Event::unbind(Listener *listener, Channel channel)
{
mBindings[channel].erase(listener);
}