summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/definition.h
Side-by-side diff
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 @@
+#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