From f811ba829c48685768caeae312e00cb93f11f72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 1 Feb 2016 23:55:00 +0100 Subject: Battle: add getMap() --- 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 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; -- cgit v1.1-2-g2b99