summaryrefslogtreecommitdiff
path: root/src/localplayer.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/localplayer.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/localplayer.cpp')
-rw-r--r--src/localplayer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 1e1d5de0..1ed65cd6 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -85,7 +85,7 @@ LocalPlayer::LocalPlayer(int id, int subtype):
mAfkTime(0),
mAwayMode(false)
{
- listen(CHANNEL_ATTRIBUTES);
+ listen(Mana::Event::AttributesChannel);
mAwayListener = new AwayListener();
@@ -93,8 +93,8 @@ LocalPlayer::LocalPlayer(int id, int subtype):
setShowName(config.getValue("showownname", 1));
- listen(CHANNEL_CONFIG);
- listen(CHANNEL_ACTORSPRITE);
+ listen(Mana::Event::ConfigChannel);
+ listen(Mana::Event::ActorSpriteChannel);
}
LocalPlayer::~LocalPlayer()
@@ -1105,9 +1105,9 @@ void LocalPlayer::addMessageToQueue(const std::string &message, int color)
mMessages.push_back(MessagePair(message, color));
}
-void LocalPlayer::event(Channels channel, const Mana::Event &event)
+void LocalPlayer::event(Mana::Event::Channel channel, const Mana::Event &event)
{
- if (channel == CHANNEL_ACTORSPRITE)
+ if (channel == Mana::Event::ActorSpriteChannel)
{
if (event.getType() == Mana::Event::Destroyed)
{
@@ -1120,7 +1120,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event)
mTarget = 0;
}
}
- else if (channel == CHANNEL_ATTRIBUTES)
+ else if (channel == Mana::Event::AttributesChannel)
{
if (event.getType() == Mana::Event::UpdateAttribute)
{
@@ -1133,7 +1133,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event)
}
}
}
- else if (channel == CHANNEL_CONFIG)
+ else if (channel == Mana::Event::ConfigChannel)
{
if (event.getType() == Mana::Event::ConfigOptionChanged &&
event.getString("option") == "showownname")