summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:16:28 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:13 +0200
commit404d3f7f2f9aa455bea423a6a00025df23cd6687 (patch)
tree27f6655b3345be1ab109433a55b0512dfe48cb34 /src/localplayer.cpp
parent1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 (diff)
downloadmana-client-404d3f7f2f9aa455bea423a6a00025df23cd6687.tar.gz
mana-client-404d3f7f2f9aa455bea423a6a00025df23cd6687.tar.bz2
mana-client-404d3f7f2f9aa455bea423a6a00025df23cd6687.tar.xz
mana-client-404d3f7f2f9aa455bea423a6a00025df23cd6687.zip
Removed the Mana namespace
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 1ed65cd6..4a03c841 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -85,7 +85,7 @@ LocalPlayer::LocalPlayer(int id, int subtype):
mAfkTime(0),
mAwayMode(false)
{
- listen(Mana::Event::AttributesChannel);
+ listen(Event::AttributesChannel);
mAwayListener = new AwayListener();
@@ -93,8 +93,8 @@ LocalPlayer::LocalPlayer(int id, int subtype):
setShowName(config.getValue("showownname", 1));
- listen(Mana::Event::ConfigChannel);
- listen(Mana::Event::ActorSpriteChannel);
+ listen(Event::ConfigChannel);
+ listen(Event::ActorSpriteChannel);
}
LocalPlayer::~LocalPlayer()
@@ -1105,11 +1105,11 @@ void LocalPlayer::addMessageToQueue(const std::string &message, int color)
mMessages.push_back(MessagePair(message, color));
}
-void LocalPlayer::event(Mana::Event::Channel channel, const Mana::Event &event)
+void LocalPlayer::event(Event::Channel channel, const Event &event)
{
- if (channel == Mana::Event::ActorSpriteChannel)
+ if (channel == Event::ActorSpriteChannel)
{
- if (event.getType() == Mana::Event::Destroyed)
+ if (event.getType() == Event::Destroyed)
{
ActorSprite *actor = event.getActor("source");
@@ -1120,9 +1120,9 @@ void LocalPlayer::event(Mana::Event::Channel channel, const Mana::Event &event)
mTarget = 0;
}
}
- else if (channel == Mana::Event::AttributesChannel)
+ else if (channel == Event::AttributesChannel)
{
- if (event.getType() == Mana::Event::UpdateAttribute)
+ if (event.getType() == Event::UpdateAttribute)
{
if (event.getInt("id") == EXP)
{
@@ -1133,9 +1133,9 @@ void LocalPlayer::event(Mana::Event::Channel channel, const Mana::Event &event)
}
}
}
- else if (channel == Mana::Event::ConfigChannel)
+ else if (channel == Event::ConfigChannel)
{
- if (event.getType() == Mana::Event::ConfigOptionChanged &&
+ if (event.getType() == Event::ConfigOptionChanged &&
event.getString("option") == "showownname")
{
setShowName(config.getValue("showownname", 1));