summaryrefslogtreecommitdiff
path: root/src/item.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/item.cpp
parent1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 (diff)
downloadmana-404d3f7f2f9aa455bea423a6a00025df23cd6687.tar.gz
mana-404d3f7f2f9aa455bea423a6a00025df23cd6687.tar.bz2
mana-404d3f7f2f9aa455bea423a6a00025df23cd6687.tar.xz
mana-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/item.cpp')
-rw-r--r--src/item.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 3dff9228..821a178b 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -72,19 +72,19 @@ void Item::setId(int id)
"unknown-item.png"));
}
-void Item::doEvent(Mana::Event::Type eventName)
+void Item::doEvent(Event::Type eventName)
{
- Mana::Event event(eventName);
+ Event event(eventName);
event.setItem("item", this);
- event.trigger(Mana::Event::ItemChannel);
+ event.trigger(Event::ItemChannel);
}
-void Item::doEvent(Mana::Event::Type eventName, int amount)
+void Item::doEvent(Event::Type eventName, int amount)
{
- Mana::Event event(eventName);
+ Event event(eventName);
event.setItem("item", this);
event.setInt("amount", amount);
- event.trigger(Mana::Event::ItemChannel);
+ event.trigger(Event::ItemChannel);
}
bool Item::isEquippable() const