summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/State.java
blob: fc22d722fd2bf7475ea9d1ac9bccd62a937a5210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package ch.asynk.rustanddust.game;

import ch.asynk.rustanddust.game.Ctrl.MsgType;

public interface State
{
    enum StateType
    {
        LOADING,
        REPLAY,
        WAIT_EVENT,
        SELECT,
        MOVE,
        ENGAGE,
        PROMOTE,
        ANIMATION,
        REINFORCEMENT,
        DEPLOYMENT,
    };

    public void touch(Hex hex);

    public void enterFrom(StateType prevState);

    public boolean processMsg(MsgType msg, Object data);
}