diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-05 07:51:34 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-05 07:51:34 +0100 |
commit | 4e5c27a098b01457a8582505d6a46338a0165b44 (patch) | |
tree | 7d33402bcb376cf667fccc1e7b9651774fd27db4 | |
parent | 83f8b8ab849b855fa87323ee1155dfd84d5596f6 (diff) |
Added a Set-class.
-rw-r--r-- | common/set.h | 24 |
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 |