summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/definition.h
Unidiff
Diffstat (limited to 'noncore/games/backgammon/definition.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/backgammon/definition.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/noncore/games/backgammon/definition.h b/noncore/games/backgammon/definition.h
new file mode 100644
index 0000000..6a23801
--- a/dev/null
+++ b/noncore/games/backgammon/definition.h
@@ -0,0 +1,74 @@
1#ifndef DEFINITION_H
2#define DEFINITION_H
3
4
5struct Coord
6{
7 int x;
8 int y;
9 int z;
10 bool side;
11};
12
13struct Pieces
14{
15 Coord player1[15];
16 Coord player2[15];
17};
18
19struct Population
20{
21 //positive = player 1
22 //negative = player 2
23 //zero = no pieces
24 int total;
25};
26
27struct Marker
28{
29 int x_current;
30 int y_current;
31 bool visible_current;
32
33 int x_next[4];
34 int y_next[4];
35 bool visible_next[4];
36};
37
38struct LoadSave
39{
40 Population pop[28];
41};
42
43struct Possiblilites
44{
45 int weight[4];
46 int to[4];
47};
48
49struct AISettings
50{
51 int rescue;
52 int eliminate;
53 int expose;
54 int protect;
55 int safe;
56 int empty;
57};
58
59struct Rules
60{
61 bool move_with_pieces_out;
62 bool generous_dice;
63};
64
65
66struct Display
67{
68 bool small;
69 bool warning;
70};
71
72
73
74#endif //DEFINITION_H