diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-10 17:03:07 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-10 17:07:02 +0100 |
commit | f91f7809da97e5021319b544f9cd79803d4f9278 (patch) | |
tree | 5a3b7fb6b4bba4637a1ba5edac502136ecb7704d /crawl-ref/source/tutorial.h | |
parent | 15d977d7adc860f06a143863c47c0089c207561a (diff) | |
download | crawl-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.h | 18 |
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 |