summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Tile.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-17 16:22:28 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-12-17 16:22:28 +0100
commitbc6b9374d9eb228bbc3d66ed6f77ea4e6ff084fe (patch)
tree829e1f7b008c5262e4dd777015732582e26009c4 /core/src/ch/asynk/gdx/boardgame/Tile.java
parent36d827659b54b04c90722eb2e431f622b33c047c (diff)
downloadgdx-boardgame-bc6b9374d9eb228bbc3d66ed6f77ea4e6ff084fe.zip
gdx-boardgame-bc6b9374d9eb228bbc3d66ed6f77ea4e6ff084fe.tar.gz
core : implement drawDebug(ShapeRenderer)
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Tile.java')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Tile.java8
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);
+ }
+ }
}