diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-01 23:55:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-01 23:55:00 +0100 |
commit | f811ba829c48685768caeae312e00cb93f11f72a (patch) | |
tree | 628a28a63b67471dcd285c6e3605b83509564f9c /core/src | |
parent | 9c18ced1eb38279f35cb431a27bf0f527ee39d3f (diff) | |
download | RustAndDust-f811ba829c48685768caeae312e00cb93f11f72a.zip RustAndDust-f811ba829c48685768caeae312e00cb93f11f72a.tar.gz |
Battle: add getMap()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Battle.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 6 |
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; |