summaryrefslogtreecommitdiff
path: root/src/resources/db/homunculusdb.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-25 13:12:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-25 13:12:05 +0300
commit6fbd52540d4f2e94b4b8391110c83320557556eb (patch)
tree8d367db37230da2ab94a1158a29ed33b9d9bbf9e /src/resources/db/homunculusdb.h
parentb1d25bc45df987a7e55ede2a0529fc90986ad1c7 (diff)
downloadmanaplus-6fbd52540d4f2e94b4b8391110c83320557556eb.tar.gz
manaplus-6fbd52540d4f2e94b4b8391110c83320557556eb.tar.bz2
manaplus-6fbd52540d4f2e94b4b8391110c83320557556eb.tar.xz
manaplus-6fbd52540d4f2e94b4b8391110c83320557556eb.zip
Load data about homunculuses from homunculuses.xml.
Diffstat (limited to 'src/resources/db/homunculusdb.h')
-rw-r--r--src/resources/db/homunculusdb.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/resources/db/homunculusdb.h b/src/resources/db/homunculusdb.h
new file mode 100644
index 000000000..31e073876
--- /dev/null
+++ b/src/resources/db/homunculusdb.h
@@ -0,0 +1,46 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2004-2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * Copyright (C) 2011-2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef RESOURCES_DB_HOMUNCULUSDB_H
+#define RESOURCES_DB_HOMUNCULUSDB_H
+
+#include "localconsts.h"
+
+#include <string>
+
+class BeingInfo;
+
+/**
+ * Homunculus information database.
+ */
+namespace HomunculusDB
+{
+ void load();
+
+ void unload();
+
+ void loadXmlFile(const std::string &fileName);
+
+ BeingInfo *get(const int id) A_WARN_UNUSED;
+} // namespace HomunculusDB
+
+#endif // RESOURCES_DB_HOMUNCULUSDB_H