summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-06-27 10:15:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-06-28 16:25:11 +0200
commit7e8eda722a5e783c773b6a7167d5672a24cfea79 (patch)
treee041ab5391cf01d00ce8471430b0030eba33842e /core/src/ch
parent357bb12eef425ae91a1055f60f788a450f965fb0 (diff)
downloadgdx-boardgame-7e8eda722a5e783c773b6a7167d5672a24cfea79.zip
gdx-boardgame-7e8eda722a5e783c773b6a7167d5672a24cfea79.tar.gz
Hud and Board use Batch interface instead of SpriteBatch
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/zproject/Board.java4
-rw-r--r--core/src/ch/asynk/zproject/Hud.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/zproject/Board.java b/core/src/ch/asynk/zproject/Board.java
index 0e4cfb9..a9b52fa 100644
--- a/core/src/ch/asynk/zproject/Board.java
+++ b/core/src/ch/asynk/zproject/Board.java
@@ -1,6 +1,6 @@
package ch.asynk.zproject;
-import com.badlogic.gdx.graphics.g2d.SpriteBatch;
+import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.utils.Disposable;
@@ -29,7 +29,7 @@ public class Board implements Disposable
return map.getHeight();
}
- public void draw(SpriteBatch batch, Rectangle viewPort)
+ public void draw(Batch batch, Rectangle viewPort)
{
batch.draw(map, 0, 0);
}
diff --git a/core/src/ch/asynk/zproject/Hud.java b/core/src/ch/asynk/zproject/Hud.java
index 4614cd4..b1cf5ea 100644
--- a/core/src/ch/asynk/zproject/Hud.java
+++ b/core/src/ch/asynk/zproject/Hud.java
@@ -1,9 +1,9 @@
package ch.asynk.zproject;
+import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.graphics.g2d.Sprite;
-import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.utils.Disposable;
@@ -28,7 +28,7 @@ public class Hud implements Disposable
hud.getTexture().dispose();
}
- public void draw(SpriteBatch batch, final Rectangle rect)
+ public void draw(Batch batch, final Rectangle rect)
{
float right = rect.x + rect.width - hud.getWidth();
float top = rect.y + rect.height - hud.getHeight();