summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-11 15:58:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-11 15:58:59 +0200
commit1c7268b49e3937a69d39d281e8077f4abc36c1d2 (patch)
tree79d8e6b1a2bc7c52c60ea14aef9184e1ebfcc10d /core/src/ch/asynk/rustanddust
parent13bb8ceaa5fe0ea7fa6ac3fdfab890353b810001 (diff)
downloadRustAndDust-1c7268b49e3937a69d39d281e8077f4abc36c1d2.zip
RustAndDust-1c7268b49e3937a69d39d281e8077f4abc36c1d2.tar.gz
Ctrl: this.mode -> mode
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 0f608d6..46b7cce 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -414,7 +414,7 @@ public abstract class Ctrl implements Disposable
hud.notifyAnimationsDone();
if (mode == Mode.LOADING) {
- this.mode = ((stateAfterAnimation == StateType.REPLAY) ? Mode.REPLAY : Mode.PLAY);
+ mode = ((stateAfterAnimation == StateType.REPLAY) ? Mode.REPLAY : Mode.PLAY);
if (mode == Mode.PLAY) {
map.clear();
storeInitialState();
@@ -441,7 +441,7 @@ public abstract class Ctrl implements Disposable
nextState = null;
}
hud.notify("Replay Done", Position.MIDDLE_CENTER);
- this.mode = Mode.PLAY;
+ mode = Mode.PLAY;
if (nextState != null) {
setState(nextState);
} else {
@@ -461,7 +461,7 @@ public abstract class Ctrl implements Disposable
if ((order.type == Order.OrderType.ENGAGE) && !order.replay) {
game.ctrl.hud.engagementSummary(order.engagement);
}
- if (this.mode == Mode.PLAY)
+ if (mode == Mode.PLAY)
storeGameOrders();
hud.update();
}
@@ -616,7 +616,7 @@ public abstract class Ctrl implements Disposable
if (depth > 1)
RustAndDust.error(String.format("***!!!*** STATE DEPTH : %d", depth));
- if ((this.mode == Mode.PLAY) && (nextState == StateType.DEPLOYMENT)) {
+ if ((mode == Mode.PLAY) && (nextState == StateType.DEPLOYMENT)) {
if (battle.isDeploymentDone())
hud.askEndDeployment();
}