summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/definition.h
authorwaspe <waspe>2003-03-30 11:30:54 (UTC)
committer waspe <waspe>2003-03-30 11:30:54 (UTC)
commit3065a1c13bec5d0b101bec48ff666d45a02ce8a6 (patch) (side-by-side diff)
treef8fe8d3eba81ef4e371c12f530be9cd4debc895b /noncore/games/backgammon/definition.h
parent87ba3646367397e149979a8477a33239cb341e99 (diff)
downloadopie-3065a1c13bec5d0b101bec48ff666d45a02ce8a6.zip
opie-3065a1c13bec5d0b101bec48ff666d45a02ce8a6.tar.gz
opie-3065a1c13bec5d0b101bec48ff666d45a02ce8a6.tar.bz2
*** empty log message ***
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