summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-03 17:11:46 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-03 17:11:46 -0500
commitdab96b810691c26e29fef92d88c828a311be3e9d (patch)
treee906b10f8dbca817e2b65bd14469226c2717a05a /src/map.h
parentc54dd4fd583f1d00d424590a9f192b2a35ede26b (diff)
downloadtanetane-dab96b810691c26e29fef92d88c828a311be3e9d.tar.gz
tanetane-dab96b810691c26e29fef92d88c828a311be3e9d.tar.bz2
tanetane-dab96b810691c26e29fef92d88c828a311be3e9d.zip
Added running sounds
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h index 2f8ec1a..de18e68 100644 --- a/src/map.h +++ b/src/map.h
@@ -5,6 +5,7 @@
5#include <vector> 5#include <vector>
6#include "renderer.h" 6#include "renderer.h"
7#include "vector.h" 7#include "vector.h"
8#include "step_type.h"
8 9
9class Renderer; 10class Renderer;
10 11
@@ -13,6 +14,7 @@ struct Tile {
13 bool flipHorizontal = false; 14 bool flipHorizontal = false;
14 bool flipVertical = false; 15 bool flipVertical = false;
15 bool blocked = false; 16 bool blocked = false;
17 StepType step = StepType::none;
16}; 18};
17 19
18class Map { 20class Map {
@@ -32,6 +34,8 @@ public:
32 34
33 bool isBlocked(int x, int y) const; 35 bool isBlocked(int x, int y) const;
34 36
37 StepType getStepType(int x, int y) const;
38
35private: 39private:
36 40
37 vec2i mapSize_; 41 vec2i mapSize_;