summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/State.java
blob: 9ab157673d1622a9d0cdf87fe6976583dcdd5cde (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
package ch.asynk.rustanddust.game;

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

public interface State
{
    enum StateType
    {
        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);
}