summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-02 19:34:48 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-02 19:34:48 -0500
commit93b3e4004387047c25b2f5a190aced01c9091934 (patch)
tree4bc8ff58dd7198bb2bfed77122547c9599b0ef0f /src/map.h
parent9f0e76a47da72573863b22bda72d55e6010def6b (diff)
downloadtanetane-93b3e4004387047c25b2f5a190aced01c9091934.tar.gz
tanetane-93b3e4004387047c25b2f5a190aced01c9091934.tar.bz2
tanetane-93b3e4004387047c25b2f5a190aced01c9091934.zip
Added collision with map tiles
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h index 1031996..2f8ec1a 100644 --- a/src/map.h +++ b/src/map.h
@@ -12,6 +12,7 @@ struct Tile {
12 unsigned int id = 0; 12 unsigned int id = 0;
13 bool flipHorizontal = false; 13 bool flipHorizontal = false;
14 bool flipVertical = false; 14 bool flipVertical = false;
15 bool blocked = false;
15}; 16};
16 17
17class Map { 18class Map {
@@ -29,6 +30,8 @@ public:
29 30
30 int getTilesetColumns() const { return tilesetColumns_; } 31 int getTilesetColumns() const { return tilesetColumns_; }
31 32
33 bool isBlocked(int x, int y) const;
34
32private: 35private:
33 36
34 vec2i mapSize_; 37 vec2i mapSize_;