From 6a87c1f59fd2fa379aeda871cf4535038756cb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 7 Mar 2016 13:37:54 +0100 Subject: BattleCommon: code compression --- .../rustanddust/game/battles/BattleCommon.java | 41 ++++------------------ 1 file changed, 6 insertions(+), 35 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index e046628..f80d01f 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java @@ -62,41 +62,12 @@ public abstract class BattleCommon implements Battle return map.unload(full, getPlayer(), getOpponent()); } - @Override - public int getId() - { - return _id; - } - - @Override - public String toString() - { - return getName(); - } - - @Override - public String getName() - { - return name; - } - - @Override - public String getDescription() - { - return description; - } - - @Override - public Map getMap() - { - return map; - } - - @Override - public Factory.MapType getMapType() - { - return mapType; - } + @Override public int getId() { return _id; } + @Override public String toString() { return getName(); } + @Override public String getName() { return name; } + @Override public String getDescription() { return description; } + @Override public Map getMap() { return map; } + @Override public Factory.MapType getMapType() { return mapType; } @Override public void init(Ctrl ctrl, int idA, int idB) -- cgit v1.1-2-g2b99