diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 17:11:46 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 17:11:46 -0500 |
| commit | dab96b810691c26e29fef92d88c828a311be3e9d (patch) | |
| tree | e906b10f8dbca817e2b65bd14469226c2717a05a /src/map.h | |
| parent | c54dd4fd583f1d00d424590a9f192b2a35ede26b (diff) | |
| download | tanetane-dab96b810691c26e29fef92d88c828a311be3e9d.tar.gz tanetane-dab96b810691c26e29fef92d88c828a311be3e9d.tar.bz2 tanetane-dab96b810691c26e29fef92d88c828a311be3e9d.zip | |
Added running sounds
Diffstat (limited to 'src/map.h')
| -rw-r--r-- | src/map.h | 4 |
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 | ||
| 9 | class Renderer; | 10 | class 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 | ||
| 18 | class Map { | 20 | class 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 | |||
| 35 | private: | 39 | private: |
| 36 | 40 | ||
| 37 | vec2i mapSize_; | 41 | vec2i mapSize_; |
