summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/itemdb.h')
-rw-r--r--src/resources/itemdb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h
index e4146131..9109898b 100644
--- a/src/resources/itemdb.h
+++ b/src/resources/itemdb.h
@@ -28,6 +28,8 @@
#include "utils/xml.h"
+#define ITEMS_DB_FILE "items.xml"
+
class ItemInfo;
class SpriteDisplay;
@@ -50,6 +52,12 @@ class ItemDB
*/
void unload();
+ /**
+ * Tells whether the item database is loaded.
+ */
+ bool isLoaded() const
+ { return mLoaded; }
+
bool exists(int id);
const ItemInfo &get(int id);