summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
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 9467d75..1a88cc8 100644 --- a/src/map.h +++ b/src/map.h
@@ -7,6 +7,7 @@
7#include <vector> 7#include <vector>
8#include "vector.h" 8#include "vector.h"
9#include "step_type.h" 9#include "step_type.h"
10#include "sprite.h"
10 11
11struct Tile { 12struct Tile {
12 unsigned int id = 0; 13 unsigned int id = 0;
@@ -14,6 +15,7 @@ struct Tile {
14 bool flipVertical = false; 15 bool flipVertical = false;
15 bool blocked = false; 16 bool blocked = false;
16 StepType step = StepType::none; 17 StepType step = StepType::none;
18 CharacterMedium medium = CharacterMedium::Normal;
17}; 19};
18 20
19struct Prototype { 21struct Prototype {
@@ -64,6 +66,8 @@ public:
64 66
65 StepType getStepType(int x, int y) const; 67 StepType getStepType(int x, int y) const;
66 68
69 CharacterMedium getMedium(int x, int y) const;
70
67 const std::vector<Prototype>& getPrototypes() const { return prototypes_; } 71 const std::vector<Prototype>& getPrototypes() const { return prototypes_; }
68 72
69 const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } 73 const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); }