From eb2c0cae1cb7a02b72c15de0f4e8f4a68a9fa53a Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 12 Aug 2010 21:47:59 -0600 Subject: Simplify working with the event system EventManager has been merged into Event, with some new convinience methods added. Reviewed-by: Chuck Miller --- src/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 9c56dec3..1b95b17d 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -26,7 +26,7 @@ #include "client.h" #include "configuration.h" #include "effectmanager.h" -#include "eventmanager.h" +#include "event.h" #include "graphics.h" #include "guild.h" #include "localplayer.h" @@ -1200,7 +1200,7 @@ void Being::talkTo() { Mana::Event event("doTalk"); event.setInt("npcId", mId); - Mana::EventManager::trigger("NPC", event); + event.trigger("NPC"); } void Being::event(const std::string &channel, const Mana::Event &event) -- cgit v1.2.3-70-g09d2