diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-18 18:23:54 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-18 18:23:54 -0400 |
commit | 103587c2d5f9deb20e549a86cdf5023b429cc6a1 (patch) | |
tree | f1e2fc60b86395e0cc40646ad1e4396a835b682f /src/world.h | |
parent | 2ec163612042bfa5e4e1bf220b489506f7039677 (diff) | |
download | therapy-103587c2d5f9deb20e549a86cdf5023b429cc6a1.tar.gz therapy-103587c2d5f9deb20e549a86cdf5023b429cc6a1.tar.bz2 therapy-103587c2d5f9deb20e549a86cdf5023b429cc6a1.zip |
Wrote an XML Schema describing maps file and also changed the spec a bit
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h new file mode 100644 index 0000000..f566487 --- /dev/null +++ b/src/world.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef WORLD_H | ||
2 | #define WORLD_H | ||
3 | |||
4 | #include <map> | ||
5 | #include "map.h" | ||
6 | |||
7 | class World { | ||
8 | public: | ||
9 | World(const char* filename); | ||
10 | const Map& getMap(int id) const; | ||
11 | const Map& getStartingMap() const; | ||
12 | std::pair<int, int> getStartingPosition() const; | ||
13 | |||
14 | private: | ||
15 | std::map<int, Map> maps; | ||
16 | int startMap; | ||
17 | int startX; | ||
18 | int startY; | ||
19 | }; | ||
20 | |||
21 | #endif /* end of include guard: WORLD_H */ | ||