summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-13 17:58:50 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-13 17:58:50 +0100
commit715d07feeb01a3f633aa42aeb40a524c16ca321e (patch)
tree68eec12d328476a9f303cc0584ecb3cd6fa868af /src/resources/itemdb.h
parent83a3b6f920f446b3001725554ab15bed34d6f368 (diff)
downloadmana-715d07feeb01a3f633aa42aeb40a524c16ca321e.tar.gz
mana-715d07feeb01a3f633aa42aeb40a524c16ca321e.tar.bz2
mana-715d07feeb01a3f633aa42aeb40a524c16ca321e.tar.xz
mana-715d07feeb01a3f633aa42aeb40a524c16ca321e.zip
Made the client handle better the lack of items.xml file.
Now the client returns to server choice dialog with a warning instead of aborting. I'm kinda certain I'm not the only one getting crazy with such a lazy behaviour. Reviewed-by: Jaxad.
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);