summaryrefslogtreecommitdiff
path: root/player/GenericPlayer.java
blob: f1a975565009938cb4dd4dfe40829bee848a73ff (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
30
31
32
33
34
35
36
package mahjong.player;

import mahjong.aux.Card;
import mahjong.aux.set.Meld;
import mahjong.aux.set.Hand;
import mahjong.aux.set.Set;
import mahjong.engine.Action;

import java.io.IOException;

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

    protected String name;

    public String getName() {
        return name;
    }

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

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

    public int getScore() {
        return score;
    }
}