summaryrefslogtreecommitdiff
path: root/common/set.h
blob: faf9a3b977ed3111b6a1585647d7102f11241f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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