From b76c24eba4fdede389e52d7e542e07fdef07c3bc Mon Sep 17 00:00:00 2001 From: Ole Daniel Evensen Date: Tue, 16 Nov 2010 23:02:37 +0100 Subject: Some commenting for debug. Changed tile-class. Created basic drawHand in table. --- common/tile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/tile.cpp') diff --git a/common/tile.cpp b/common/tile.cpp index f5e1ee4..6164fcc 100644 --- a/common/tile.cpp +++ b/common/tile.cpp @@ -4,11 +4,12 @@ Tile::Tile() { } -Tile::Tile(Tile::Type t, Tile::Flags f) : type(t), flags(f) { +Tile::Tile(Tile::Type t, bool re, bool ro) : type(t), red(re), rotated(ro){ } Tile::Tile(uint16_t w) { type = Type(w & 0x00ff); - flags = Flags(w >> 8); + red = (w >> 8); + rotated = (w >> 9); } -- cgit v1.2.3