From 50d8d710b58e01cd449f716939c92d45997f09b3 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 4 Aug 2013 10:33:20 -0400 Subject: [PATCH] add fields to track parent tile (large tile) dimensions This will be useful for rotating "large tiles" when I eventually get around to implementing that. --- src/com/blarg/gdx/tilemap3d/Tile.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/blarg/gdx/tilemap3d/Tile.java b/src/com/blarg/gdx/tilemap3d/Tile.java index f21bb86..144fe00 100644 --- a/src/com/blarg/gdx/tilemap3d/Tile.java +++ b/src/com/blarg/gdx/tilemap3d/Tile.java @@ -39,6 +39,9 @@ public final class Tile { public byte parentTileOffsetX; public byte parentTileOffsetY; public byte parentTileOffsetZ; + public byte parentTileWidth; + public byte parentTileHeight; + public byte parentTileDepth; public int color; public Tile() { @@ -77,6 +80,9 @@ public final class Tile { this.parentTileOffsetX = other.parentTileOffsetX; this.parentTileOffsetY = other.parentTileOffsetY; this.parentTileOffsetZ = other.parentTileOffsetZ; + this.parentTileWidth = other.parentTileWidth; + this.parentTileHeight = other.parentTileHeight; + this.parentTileDepth = other.parentTileDepth; this.color = other.color; return this; }