From 103587c2d5f9deb20e549a86cdf5023b429cc6a1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 18 Mar 2015 18:23:54 -0400 Subject: Wrote an XML Schema describing maps file and also changed the spec a bit --- src/world.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/world.h (limited to 'src/world.h') 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 @@ +#ifndef WORLD_H +#define WORLD_H + +#include +#include "map.h" + +class World { + public: + World(const char* filename); + const Map& getMap(int id) const; + const Map& getStartingMap() const; + std::pair getStartingPosition() const; + + private: + std::map maps; + int startMap; + int startX; + int startY; +}; + +#endif /* end of include guard: WORLD_H */ -- cgit 1.4.1