Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/interfaces/StarWorld.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/interfaces/StarWorld.hpp')
-rw-r--r--source/game/interfaces/StarWorld.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/game/interfaces/StarWorld.hpp b/source/game/interfaces/StarWorld.hpp
index d718786..6b6cae8 100644
--- a/source/game/interfaces/StarWorld.hpp
+++ b/source/game/interfaces/StarWorld.hpp
@@ -46,6 +46,11 @@ public:
// Apply a list of tile modifications in the best order to apply as many
// possible, and returns the modifications that could not be applied.
virtual TileModificationList applyTileModifications(TileModificationList const& modificationList, bool allowEntityOverlap) = 0;
+ // Swap existing tiles for ones defined in the modification list,
+ // and returns the modifications that could not be applied.
+ virtual TileModificationList replaceTiles(TileModificationList const& modificationList) = 0;
+ // If an applied damage would destroy a tile
+ virtual bool damageWouldDestroy(Vec2I const& pos, TileLayer layer, TileDamage const& tileDamage) const = 0;
virtual bool isTileProtected(Vec2I const& pos) const = 0;