summaryrefslogtreecommitdiff
path: root/shared/src/main/java/kz/ilotterytea/frogartha/domain/PlayerData.java
blob: ec6e1cd5af0f6f4c52cb424e3c2813c2b17718eb (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
package kz.ilotterytea.frogartha.domain;

public class PlayerData {
    private Identity identity;
    private PlayerState state;

    public PlayerData() {
    }

    public PlayerData(Identity identity, PlayerState state) {
        this.identity = identity;
        this.state = state;
    }

    public Identity getIdentity() {
        return identity;
    }

    public void setIdentity(Identity identity) {
        this.identity = identity;
        if (state == null) state = new PlayerState();
    }

    public PlayerState getState() {
        return state;
    }
}