diff options
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Tile.java')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Tile.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Tile.java b/core/src/ch/asynk/gdx/boardgame/Tile.java index dda0307..d051cef 100644 --- a/core/src/ch/asynk/gdx/boardgame/Tile.java +++ b/core/src/ch/asynk/gdx/boardgame/Tile.java @@ -2,6 +2,7 @@ package ch.asynk.gdx.boardgame; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.TextureAtlas; +import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import ch.asynk.gdx.boardgame.Overlays; @@ -41,4 +42,11 @@ public class Tile implements Drawable { return "[" + x + ", " + y + "]"; } + + @Override public void drawDebug(ShapeRenderer shapeRenderer) + { + if (overlays != null) { + overlays.drawDebug(shapeRenderer); + } + } } |