summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-02 14:59:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-02 14:59:00 +0100
commit619bc54eb1d6f84937f35f00c55de74d22797d50 (patch)
tree21835f8295843f0297018f63fb5eb110a8fa1a57 /core/src
parent6aa0307954fa510cab15657bdbd4b80a9b905c8c (diff)
downloadRustAndDust-619bc54eb1d6f84937f35f00c55de74d22797d50.zip
RustAndDust-619bc54eb1d6f84937f35f00c55de74d22797d50.tar.gz
Battle[Common]: add String unload() and implement it
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Battle.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java6
2 files changed, 8 insertions, 0 deletions
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;