summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-09 01:11:25 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-09 01:11:25 +0100
commit6dd260c8130ff79a97ff3aa2fcea38441808188d (patch)
treeb2721c0a2bae8f661636ee49533d7051356a49f6 /core/src/ch/asynk/rustanddust/game
parentdd643a24020145533c5b3ba6df161e3cebe21d8c (diff)
downloadRustAndDust-6dd260c8130ff79a97ff3aa2fcea38441808188d.zip
RustAndDust-6dd260c8130ff79a97ff3aa2fcea38441808188d.tar.gz
Map: code cleanup
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Map.java21
1 files 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)
{