From e3fd07e606098dd9cdf0b7ed806340d8466b5572 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 11 Feb 2018 22:55:22 +0100 Subject: Reimplement in C++ with SFML (mostly) --- src/main/headers/Map.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/main/headers/Map.hpp (limited to 'src/main/headers/Map.hpp') 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 + +class Map +{ +public: + const unsigned width; + const unsigned height; + + Map(); + + Tile& tile(unsigned x, unsigned y); + const std::vector& tiles() const; + + bool moveActor(Tile &from, Tile &to); + +private: + std::vector _tiles; +}; + +#endif -- cgit v1.2.1