summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-18 02:32:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-18 02:32:53 +0100
commit1dace442ed9abfac42165a1c7d77a1b66c6fe287 (patch)
tree4d480ddcd4fe576aa56c5d638441b9aca83e4d27 /core/src/ch/asynk/tankontank/game/states
parent6177f62a8355e9cadfa0d726947fcf56ce4875c5 (diff)
downloadRustAndDust-1dace442ed9abfac42165a1c7d77a1b66c6fe287.zip
RustAndDust-1dace442ed9abfac42165a1c7d77a1b66c6fe287.tar.gz
State: done() -> execute()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateAnimation.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateBreak.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateDeployment.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateEngage.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateEscape.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StatePromote.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateReinforcement.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateRotate.java4
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateSelect.java2
10 files changed, 11 insertions, 11 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateAnimation.java b/core/src/ch/asynk/tankontank/game/states/StateAnimation.java
index 86bf61c..2e115a9 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateAnimation.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateAnimation.java
@@ -20,7 +20,7 @@ public class StateAnimation extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
return StateType.DONE;
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateBreak.java b/core/src/ch/asynk/tankontank/game/states/StateBreak.java
index 2274e82..91fae11 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateBreak.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateBreak.java
@@ -36,7 +36,7 @@ public class StateBreak extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
return StateType.DONE;
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java
index baa15ca..1358372 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java
@@ -48,7 +48,7 @@ public class StateDeployment extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
deployedUnits.clear();
return StateType.DONE;
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEngage.java b/core/src/ch/asynk/tankontank/game/states/StateEngage.java
index 5facbce..c1903bd 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateEngage.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateEngage.java
@@ -50,7 +50,7 @@ public class StateEngage extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
StateType nextState = StateType.DONE;
if (map.engageUnit(selectedUnit, activeUnit)) {
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEscape.java b/core/src/ch/asynk/tankontank/game/states/StateEscape.java
index cc31007..a10e0b6 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateEscape.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateEscape.java
@@ -23,7 +23,7 @@ public class StateEscape extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
if (activeUnit == null)
activeUnit = selectedUnit;
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java
index 009a877..7ab8be8 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -83,7 +83,7 @@ public class StateMove extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
hideAssists();
// be sure that the hq is activated
diff --git a/core/src/ch/asynk/tankontank/game/states/StatePromote.java b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
index caf781b..340cb7b 100644
--- a/core/src/ch/asynk/tankontank/game/states/StatePromote.java
+++ b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
@@ -26,7 +26,7 @@ public class StatePromote extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
return StateType.DONE;
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateReinforcement.java b/core/src/ch/asynk/tankontank/game/states/StateReinforcement.java
index e254491..792c159 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateReinforcement.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateReinforcement.java
@@ -37,7 +37,7 @@ public class StateReinforcement extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
return StateType.DONE;
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
index 8cf9689..2e1e822 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
@@ -67,7 +67,7 @@ public class StateRotate extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
StateType whenDone = StateType.DONE;
@@ -106,7 +106,7 @@ public class StateRotate extends StateCommon
map.showOrientation(to, o);
ctrl.hud.actionButtons.show(Buttons.DONE.b | ((ctrl.cfg.canCancel) ? Buttons.ABORT.b : 0));
} else {
- done();
+ execute();
ctrl.setState(StateType.ANIMATION);
}
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
index 9d7b84c..0937620 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
@@ -43,7 +43,7 @@ public class StateSelect extends StateCommon
}
@Override
- public StateType done()
+ public StateType execute()
{
return StateType.DONE;
}