summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.h
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-01-10 17:03:07 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-01-10 17:07:02 +0100
commitf91f7809da97e5021319b544f9cd79803d4f9278 (patch)
tree5a3b7fb6b4bba4637a1ba5edac502136ecb7704d /crawl-ref/source/tutorial.h
parent15d977d7adc860f06a143863c47c0089c207561a (diff)
downloadcrawl-ref-f91f7809da97e5021319b544f9cd79803d4f9278.tar.gz
crawl-ref-f91f7809da97e5021319b544f9cd79803d4f9278.zip
Add code basis for adding different tutorial maps.
Currently unused as we only have a single map, but I've tested it with a set of dummy maps, and it works. This changes some of the sprint specific methods to more generic game mode methods that'll also be usable for ZotDef.
Diffstat (limited to 'crawl-ref/source/tutorial.h')
-rw-r--r--crawl-ref/source/tutorial.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/tutorial.h b/crawl-ref/source/tutorial.h
new file mode 100644
index 0000000000..de64b68d09
--- /dev/null
+++ b/crawl-ref/source/tutorial.h
@@ -0,0 +1,18 @@
+/*
+ * File: tutorial.h
+ * Summary: Collection of tutorial related functions.
+ */
+
+#ifndef TUTORIAL_H
+#define TUTORIAL_H
+
+class map_def;
+// All available maps.
+std::vector<const map_def *> get_tutorial_maps();
+
+// Set and get the current map. Used to transfer
+// map choice from game choice to level gen.
+void set_tutorial_map(const std::string& map);
+std::string get_tutorial_map();
+
+#endif