summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-11-11 23:12:29 -0500
committerChuck Miller <shadowmil@gmail.com>2010-11-11 23:12:29 -0500
commita4640305fd0d88c6332112712aa69e496368e01b (patch)
tree0f039b331026ca2b9718a920b24e2344f9e56b25 /src/item.cpp
parent5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (diff)
downloadmana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.gz
mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.bz2
mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.xz
mana-client-a4640305fd0d88c6332112712aa69e496368e01b.zip
Replace Event names with enums instead of strings
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 7357d35f..fee7e86f 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -72,14 +72,14 @@ void Item::setId(int id)
"unknown-item.png"));
}
-void Item::doEvent(const std::string &eventName)
+void Item::doEvent(Events eventName)
{
Mana::Event event(eventName);
event.setItem("item", this);
event.trigger(CHANNEL_ITEM);
}
-void Item::doEvent(const std::string &eventName, int amount)
+void Item::doEvent(Events eventName, int amount)
{
Mana::Event event(eventName);
event.setItem("item", this);