diff options
author | Nao Pross <naopross@thearcway.org> | 2018-02-11 22:55:22 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-02-11 22:55:22 +0100 |
commit | e3fd07e606098dd9cdf0b7ed806340d8466b5572 (patch) | |
tree | cbf5cc81afcbbc62784f7c6fc02d4418cf03cee7 /src/main/headers/Map.hpp | |
parent | Remove redundant scenesOffsetX/Y, replaced with panX (diff) | |
download | Subconscious-old-e3fd07e606098dd9cdf0b7ed806340d8466b5572.tar.gz Subconscious-old-e3fd07e606098dd9cdf0b7ed806340d8466b5572.zip |
Reimplement in C++ with SFML (mostly)
Diffstat (limited to '')
-rw-r--r-- | src/main/headers/Map.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/headers/Map.hpp b/src/main/headers/Map.hpp new file mode 100644 index 0000000..81c456e --- /dev/null +++ b/src/main/headers/Map.hpp @@ -0,0 +1,25 @@ +#ifndef MAP_HPP +#define MAP_HPP + +#include "Tile.hpp" + +#include <vector> + +class Map +{ +public: + const unsigned width; + const unsigned height; + + Map(); + + Tile& tile(unsigned x, unsigned y); + const std::vector<Tile>& tiles() const; + + bool moveActor(Tile &from, Tile &to); + +private: + std::vector<Tile> _tiles; +}; + +#endif |