summaryrefslogtreecommitdiff
path: root/boardpos.h
diff options
context:
space:
mode:
authorRuss Allbery <rra@debian.org>2008-02-16 10:41:04 -0800
committerRuss Allbery <rra@debian.org>2008-02-16 10:41:04 -0800
commit4258edd6a0fcb6cd568413984eff5731829897b2 (patch)
treef215b95d6b53e3b8af77a642e80afa9aa1e7cbaf /boardpos.h
Imported upstream version 0.16~20080216
Diffstat (limited to 'boardpos.h')
-rw-r--r--boardpos.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/boardpos.h b/boardpos.h
new file mode 100644
index 0000000..c124821
--- /dev/null
+++ b/boardpos.h
@@ -0,0 +1,61 @@
+/*
+ * boardpos.h
+ *
+ * by Jørn Thyssen <jth@gnubg.org>, 2003
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of version 3 or later of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * $Id: boardpos.h,v 1.5 2007/09/14 11:30:48 c_anthon Exp $
+ */
+
+#ifndef _BOARDPOS_H_
+#define _BOARDPOS_H_
+
+#define POINT_UNUSED0 28 /* the top unused bearoff tray */
+#define POINT_UNUSED1 29 /* the bottom unused bearoff tray */
+#define POINT_DICE 30
+#define POINT_CUBE 31
+#define POINT_RIGHT 32
+#define POINT_LEFT 33
+#define POINT_RESIGN 34
+
+#define ARROW_SIZE 5
+
+extern int positions[ 2 ][ 30 ][ 3 ];
+
+extern void
+ChequerPosition( const int clockwise,
+ const int point, const int chequer,
+ int *px, int *py );
+
+extern void
+PointArea( const int fClockwise, const int nSize,
+ const int n,
+ int *px, int *py, int *pcx, int *pcy );
+
+
+extern void
+CubePosition( const int crawford_game, const int cube_use,
+ const int doubled, const int cube_owner,
+ int *px, int *py, int *porient );
+
+extern void
+ArrowPosition( const int clockwise, const int nSize, int *px, int *py );
+
+
+extern void
+ResignPosition( const int resigned, int *px, int *py, int *porient );
+
+
+#endif