summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/State.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-13 23:44:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-13 23:48:54 +0200
commit95d0131cb9733d273b81bf63a8778dc2b8e0a414 (patch)
treebe0bca04dc39f66ce1ffbeb5f22e191123e5facf /core/src/ch/asynk/rustanddust/game/State.java
parent513938e9b1731308535ef45336239f9209e2e396 (diff)
downloadRustAndDust-keep.zip
RustAndDust-keep.tar.gz
WIPkeep
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/State.java')
-rw-r--r--core/src/ch/asynk/rustanddust/game/State.java22
1 files changed, 8 insertions, 14 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/State.java b/core/src/ch/asynk/rustanddust/game/State.java
index a3a6fec..fc22d72 100644
--- a/core/src/ch/asynk/rustanddust/game/State.java
+++ b/core/src/ch/asynk/rustanddust/game/State.java
@@ -1,32 +1,26 @@
package ch.asynk.rustanddust.game;
+import ch.asynk.rustanddust.game.Ctrl.MsgType;
+
public interface State
{
- enum StateType {
+ enum StateType
+ {
LOADING,
REPLAY,
+ WAIT_EVENT,
SELECT,
MOVE,
- ROTATE,
ENGAGE,
- BREAK,
PROMOTE,
ANIMATION,
REINFORCEMENT,
DEPLOYMENT,
- WITHDRAW,
- ABORT,
- DONE,
- TURN_OVER
};
- public void enterFrom(StateType prevState);
-
- public void leaveFor(StateType nextState);
-
- public StateType abort();
+ public void touch(Hex hex);
- public StateType execute();
+ public void enterFrom(StateType prevState);
- public void touch(Hex hex);
+ public boolean processMsg(MsgType msg, Object data);
}