summaryrefslogtreecommitdiff
path: root/player/PlayerActionServer.java
blob: 49fcef4c221679e866211af8afd1263d3b421f26 (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
27
28
29
package mahjong.player;

import mahjong.aux.set.Hand;
import mahjong.engine.Action;

/**
 * Created by joe on 12/4/14.
 */
public abstract class PlayerActionServer {
    public Hand hand=new Hand();
    int score;

    protected String name;

    public String getName() {
        return name;
    }

    public abstract Action stateAlert(Action action);
    public abstract void stateUpdate(Action action);

    public void setScore(int score) {
        this.score = score;
    }

    public int getScore() {
        return score;
    }
}