summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
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.