1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Do not place object visible tiles over the top of the map.

This commit is contained in:
Tomasz Zieliński
2023-04-10 19:26:53 +02:00
parent 9ea746a68c
commit 3c87b3934d
7 changed files with 57 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ public:
void setTemplate(TerrainId terrain); //cache invalidation
void setAnyTemplate(); //cache invalidation
int3 getTopTile() const;
int3 getPosition(bool isAbsolute = false) const;
void setPosition(const int3 & position); //cache invalidation
void setPositionRaw(const int3 & position); //no cache invalidation
@@ -75,6 +76,7 @@ public:
void setTemplate(const TerrainId & terrain);
const Area & getArea() const; //lazy cache invalidation
const int3 getVisibleTop() const;
void finalize(RmgMap & map);
void clear();