summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-08 09:02:24 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-08 09:02:24 +0200
commit85eda8c5bedf7f77cdb225bd5bba25fe4af721fb (patch)
tree3a42538d588842b52dd29a53185256bf26513e32
parent1ff9f420eb81ad79f44be55f548ecdb2c642ce01 (diff)
downloadRustAndDust-85eda8c5bedf7f77cdb225bd5bba25fe4af721fb.zip
RustAndDust-85eda8c5bedf7f77cdb225bd5bba25fe4af721fb.tar.gz
GameStateView -> GameStateSelect
-rw-r--r--core/src/ch/asynk/tankontank/game/GameCtrl.java12
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateSelect.java (renamed from core/src/ch/asynk/tankontank/game/states/GameStateView.java)6
2 files changed, 9 insertions, 9 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameCtrl.java b/core/src/ch/asynk/tankontank/game/GameCtrl.java
index 9c39ef8..3d895d4 100644
--- a/core/src/ch/asynk/tankontank/game/GameCtrl.java
+++ b/core/src/ch/asynk/tankontank/game/GameCtrl.java
@@ -4,7 +4,7 @@ import com.badlogic.gdx.utils.Disposable;
import ch.asynk.tankontank.TankOnTank;
import ch.asynk.tankontank.game.states.GameStateCommon;
-import ch.asynk.tankontank.game.states.GameStateView;
+import ch.asynk.tankontank.game.states.GameStateSelect;
import ch.asynk.tankontank.game.states.GameStateMove;
import ch.asynk.tankontank.game.states.GameStateDirection;
import ch.asynk.tankontank.game.states.GameStateRotate;
@@ -18,7 +18,7 @@ public class GameCtrl implements Disposable
public Map map;
public Hud hud;
- private GameState viewState;
+ private GameState selectState;
private GameState pathState;
private GameState directionState;
private GameState rotateState;
@@ -34,13 +34,13 @@ public class GameCtrl implements Disposable
this.hud = new Hud(this, game);
this.map = factory.getMap(this, game.manager, GameFactory.MapType.MAP_A);
- this.viewState = new GameStateView(this, map);
+ this.selectState = new GameStateSelect(this, map);
this.pathState = new GameStateMove();
this.directionState = new GameStateDirection();
this.rotateState = new GameStateRotate();
this.animationState = new GameStateAnimation();
- this.state = viewState;
+ this.state = selectState;
factory.fakeSetup(map);
}
@@ -60,7 +60,7 @@ public class GameCtrl implements Disposable
public boolean isInAction()
{
- return (state != viewState);
+ return (state != selectState);
}
public void animationDone()
@@ -73,7 +73,7 @@ public class GameCtrl implements Disposable
{
switch(state) {
case VIEW:
- this.state = viewState;
+ this.state = selectState;
break;
case MOVE:
this.state = pathState;
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateView.java b/core/src/ch/asynk/tankontank/game/states/GameStateSelect.java
index fc67ccb..abf868c 100644
--- a/core/src/ch/asynk/tankontank/game/states/GameStateView.java
+++ b/core/src/ch/asynk/tankontank/game/states/GameStateSelect.java
@@ -3,9 +3,9 @@ package ch.asynk.tankontank.game.states;
import ch.asynk.tankontank.game.Map;
import ch.asynk.tankontank.game.GameCtrl;
-public class GameStateView extends GameStateCommon
+public class GameStateSelect extends GameStateCommon
{
- public GameStateView(GameCtrl ctrl, Map map)
+ public GameStateSelect(GameCtrl ctrl, Map map)
{
super(ctrl, map);
}
@@ -18,7 +18,7 @@ public class GameStateView extends GameStateCommon
@Override
public void touchDown()
{
- reselectHex();
+ reselect(hex);
}
@Override