summaryrefslogtreecommitdiff
path: root/common/tile.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 14:19:06 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 14:19:29 +0100
commitff3f2c3d619479072780fa8311077ac2d35996e1 (patch)
tree85d442cc34d2045e3e228f09dc714ea6ddbd2c4d /common/tile.cpp
parentb2527a9eaa7082c50ce6230e79df88edbced9abb (diff)
Changed Tile API.
Diffstat (limited to 'common/tile.cpp')
-rw-r--r--common/tile.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/tile.cpp b/common/tile.cpp
index bf39a4e..f5e1ee4 100644
--- a/common/tile.cpp
+++ b/common/tile.cpp
@@ -4,10 +4,11 @@ Tile::Tile() {
}
-Tile::Tile(Tile::Type t) : type(t) {
+Tile::Tile(Tile::Type t, Tile::Flags f) : type(t), flags(f) {
}
-Tile::Tile(uint8_t b) : type((Type)b) {
-
+Tile::Tile(uint16_t w) {
+ type = Type(w & 0x00ff);
+ flags = Flags(w >> 8);
}