summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-01 23:55:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-01 23:55:00 +0100
commitf811ba829c48685768caeae312e00cb93f11f72a (patch)
tree628a28a63b67471dcd285c6e3605b83509564f9c /core/src/ch/asynk/rustanddust/game
parent9c18ced1eb38279f35cb431a27bf0f527ee39d3f (diff)
downloadRustAndDust-f811ba829c48685768caeae312e00cb93f11f72a.zip
RustAndDust-f811ba829c48685768caeae312e00cb93f11f72a.tar.gz
Battle: add getMap()
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-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 93f8ab6..a5c9559 100644
--- a/core/src/ch/asynk/rustanddust/game/Battle.java
+++ b/core/src/ch/asynk/rustanddust/game/Battle.java
@@ -11,6 +11,8 @@ public interface Battle
public String getDescription();
+ public Map getMap();
+
public MapType getMapType();
public Position getHudPosition();
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
index b460929..77d3f64 100644
--- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
@@ -87,6 +87,12 @@ public abstract class BattleCommon implements Battle
}
@Override
+ public Map getMap()
+ {
+ return map;
+ }
+
+ @Override
public Factory.MapType getMapType()
{
return mapType;