diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-02 19:34:48 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-02 19:34:48 -0500 |
| commit | 93b3e4004387047c25b2f5a190aced01c9091934 (patch) | |
| tree | 4bc8ff58dd7198bb2bfed77122547c9599b0ef0f /src/map.h | |
| parent | 9f0e76a47da72573863b22bda72d55e6010def6b (diff) | |
| download | tanetane-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.h | 3 |
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 | ||
| 17 | class Map { | 18 | class 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 | |||
| 32 | private: | 35 | private: |
| 33 | 36 | ||
| 34 | vec2i mapSize_; | 37 | vec2i mapSize_; |
