From 4e5c27a098b01457a8582505d6a46338a0165b44 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 5 Dec 2010 07:51:34 +0100 Subject: Added a Set-class. --- common/set.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 common/set.h 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 Sets; + +#endif -- cgit v1.2.3