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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user