summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/definition.h
blob: 6a238012a50d2838729ef07686c3d1bb77de608d (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef DEFINITION_H
#define DEFINITION_H


struct Coord
{
    int x;
    int y;
    int z;
    bool side;
};

struct Pieces
{
    Coord player1[15];
    Coord player2[15];
};

struct Population
{
    //positive = player 1
    //negative = player 2
    //zero = no pieces
    int total;
};

struct Marker
{
    int x_current;
    int y_current;
    bool visible_current;

    int x_next[4];
    int y_next[4];
    bool visible_next[4];
};

struct LoadSave
{
    Population pop[28];
};

struct Possiblilites
{
    int weight[4];
    int to[4];
};

struct AISettings
{
    int rescue;
    int eliminate;
    int expose;
    int protect;
    int  safe;
    int empty;
};

struct Rules
{
    bool move_with_pieces_out;
    bool generous_dice;
};


struct Display
{
  bool small;
  bool warning;
};



#endif //DEFINITION_H