summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-dump.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/wiz-dump.h')
-rw-r--r--crawl-ref/source/wiz-dump.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-dump.h b/crawl-ref/source/wiz-dump.h
new file mode 100644
index 0000000000..3ab44a6e9b
--- /dev/null
+++ b/crawl-ref/source/wiz-dump.h
@@ -0,0 +1,32 @@
+/**
+ * @file
+ * @brief Wizmode character dump loading
+**/
+
+#ifndef WIZDUMP_H
+#define WIZDUMP_H
+
+class chardump_parser {
+public:
+ chardump_parser(const string &f) : filename(f) { }
+
+ bool parse();
+
+private:
+ bool _parse_from_file(const string &full_filename);
+
+ void _modify_character(const string &line);
+
+ bool _check_skill(const vector<string> &tokens);
+ bool _check_stats1(const vector<string> &tokens);
+ bool _check_stats2(const vector<string> &tokens);
+ bool _check_stats3(const vector<string> &tokens);
+ bool _check_char(const vector<string> &tokens);
+ bool _check_equipment(const vector<string> &tokens, bool in_equipment);
+
+ string filename;
+};
+
+void wizard_load_dump_file();
+
+#endif