summaryrefslogtreecommitdiff
path: root/src/item.h
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.h
parent5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (diff)
downloadmana-a4640305fd0d88c6332112712aa69e496368e01b.tar.gz
mana-a4640305fd0d88c6332112712aa69e496368e01b.tar.bz2
mana-a4640305fd0d88c6332112712aa69e496368e01b.tar.xz
mana-a4640305fd0d88c6332112712aa69e496368e01b.zip
Replace Event names with enums instead of strings
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/item.h b/src/item.h
index 269618f1..24ee2fc5 100644
--- a/src/item.h
+++ b/src/item.h
@@ -22,6 +22,8 @@
#ifndef ITEM_H
#define ITEM_H
+#include "event.h"
+
#include "resources/itemdb.h"
class Image;
@@ -112,9 +114,9 @@ class Item
*/
int getInvIndex() const { return mInvIndex; }
- void doEvent(const std::string &eventName);
+ void doEvent(Events eventName);
- void doEvent(const std::string &eventName, int amount);
+ void doEvent(Events eventName, int amount);
/**
* Returns information about this item type.