From 6dd260c8130ff79a97ff3aa2fcea38441808188d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 Dec 2015 01:11:25 +0100 Subject: Map: code cleanup --- core/src/ch/asynk/rustanddust/game/Map.java | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java index b31410f..99f1011 100644 --- a/core/src/ch/asynk/rustanddust/game/Map.java +++ b/core/src/ch/asynk/rustanddust/game/Map.java @@ -24,9 +24,15 @@ public abstract class Map extends Map4Commands meteorology = new Meteorology(); } - public void init() + public void clearAll() + { + clearMoves(); + clearUnits(); + } + + public void actionDone() { - actionDone(); + objectives.forget(); } public void turnDone() @@ -40,17 +46,6 @@ public abstract class Map extends Map4Commands commandsClear(); } - public void actionDone() - { - objectives.forget(); - } - - public void clearAll() - { - clearMoves(); - clearUnits(); - } - @Override protected int engagementCost(Engagement e) { -- cgit v1.1-2-g2b99