From 619bc54eb1d6f84937f35f00c55de74d22797d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 2 Feb 2016 14:59:00 +0100 Subject: Battle[Common]: add String unload() and implement it --- core/src/ch/asynk/rustanddust/game/Battle.java | 2 ++ core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/game/Battle.java b/core/src/ch/asynk/rustanddust/game/Battle.java index a5c9559..e8dd65a 100644 --- a/core/src/ch/asynk/rustanddust/game/Battle.java +++ b/core/src/ch/asynk/rustanddust/game/Battle.java @@ -36,4 +36,6 @@ public interface Battle public Zone getEntryZone(Unit unit); public Zone getExitZone(Unit unit); + + public String unload(); } diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index 9c43b9b..f34e594 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java @@ -63,6 +63,12 @@ public abstract class BattleCommon implements Battle } @Override + public String unload() + { + return map.unload(getPlayer(), getOpponent()); + } + + @Override public int getId() { return _id; -- cgit v1.1-2-g2b99