summaryrefslogtreecommitdiff
path: root/common/set.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/set.h')
-rw-r--r--common/set.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/set.h b/common/set.h
new file mode 100644
index 0000000..faf9a3b
--- /dev/null
+++ b/common/set.h
@@ -0,0 +1,24 @@
+#ifndef SET_H
+#define SET_H
+
+#include "tile.h"
+
+class Set {
+ public:
+ enum Type {
+ Pair,
+ Chi,
+ Pon,
+ Kan
+ };
+
+ Type type;
+ Tiles tiles;
+ bool open;
+
+ Set(Type ty, Tiles ti, bool o) : type(ty), tiles(ti), open(o) {}
+};
+
+typedef List<Set> Sets;
+
+#endif