summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Board.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Board.java b/core/src/ch/asynk/rustanddust/engine/Board.java
index 1bc11c9..ace94d6 100644
--- a/core/src/ch/asynk/rustanddust/engine/Board.java
+++ b/core/src/ch/asynk/rustanddust/engine/Board.java
@@ -440,13 +440,21 @@ public abstract class Board implements Disposable, Animation
}
}
- public void revertclaim(Pawn pawn, Tile tile)
+ public void revertClaim(Pawn pawn, Tile tile)
{
int o = pawn.getTile().revertClaim().overlay();
tile.enableOverlay(pawn.getFaction().overlay(), false);
enableOverlayOn(tile ,o, true);
}
+ public void revertClaim(Pawn pawn, Move move)
+ {
+ revertClaim(pawn, move.to);
+ for (Tile tile : move.tiles)
+ revertClaim(pawn, tile);
+ claim(pawn, move.from);
+ }
+
public void enableOverlayOn(Tile tile, int i, boolean enable)
{
if (tile.enableOverlay(i, enable))