#include "tile.h" Tile::Tile() { } Tile::Tile(Tile::Type t, bool re, bool ro) : type(t), red(re), rotated(ro){ } int Tile::get_num() { if(type >= Man_1 && type <= Sou_9) { return (type - Man_1) % 9 + 1; } else { return 0; } } bool Tile::operator==(const Tile& other) { return type == other.type; } Tile Tile::operator++(int) { type = Type(type + 1); return *this; }