diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-22 22:29:04 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-22 22:29:04 +0100 |
commit | fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c (patch) | |
tree | 32206a1b2b1ec73dc77fe4dad5c49bd3c8428346 /core | |
parent | 498259468be4e9f73319c9a63fb1782e8bbe5088 (diff) | |
download | RustAndDust-fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c.zip RustAndDust-fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c.tar.gz |
Map: when destroyed call objectives.unclaim(Hex)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 1d5faf6..f78e499 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -326,7 +326,10 @@ public abstract class Map extends Board if (success) { seq.addAnimation(RunnableAnimation.get(target, new Runnable() { @Override - public void run() { removePawn(target); } + public void run() { + objectives.unclaim(target.getHex()); + removePawn(target); + } })); } seq.addAnimation(notifyDoneAnimation(target)); |