summaryrefslogtreecommitdiffstats
path: root/kmahjongg/KmTypes.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /kmahjongg/KmTypes.h
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmahjongg/KmTypes.h')
-rw-r--r--kmahjongg/KmTypes.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/kmahjongg/KmTypes.h b/kmahjongg/KmTypes.h
new file mode 100644
index 00000000..8f85978a
--- /dev/null
+++ b/kmahjongg/KmTypes.h
@@ -0,0 +1,27 @@
+#ifndef _KM_TYPES_
+#define _KM_TYPES_
+
+//----------------------------------------------------------
+// TYPEDEFS
+//----------------------------------------------------------
+typedef unsigned char UCHAR;
+typedef unsigned char BYTE;
+typedef unsigned short USHORT;
+typedef unsigned long ULONG;
+
+
+typedef struct pos {
+ pos() : e(0), y(0), x(0), f(0) { }
+ USHORT e,y,x,f;
+} POSITION;
+
+typedef struct dep {
+ int turn_dep[4]; // Turn dependencies
+ int place_dep[4]; // Placing dependencies
+ int lhs_dep[2]; // Left side dependencies, same level
+ int rhs_dep[2]; // Right side dependencies, same level
+ bool filled; // True if this tile has been placed.
+ bool free; // True if this tile can be removed?
+} DEPENDENCY;
+
+#endif