summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine/gfx
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-21 02:06:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-21 02:06:28 +0200
commit2850bbff24c435eb133e6b8d68a391db97e6a9f8 (patch)
treea9e8889016b919ede91b2b1e4f5486c61242bfa6 /core/src/ch/asynk/tankontank/engine/gfx
parent4d4619fb573fc1c9b72df5cad8c26b7de80c8578 (diff)
downloadRustAndDust-2850bbff24c435eb133e6b8d68a391db97e6a9f8.zip
RustAndDust-2850bbff24c435eb133e6b8d68a391db97e6a9f8.tar.gz
SpriteNode -> Image does not implements Node anymore
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/gfx')
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/Image.java (renamed from core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java)7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java b/core/src/ch/asynk/tankontank/engine/gfx/Image.java
index dd1c648..00a7927 100644
--- a/core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java
+++ b/core/src/ch/asynk/tankontank/engine/gfx/Image.java
@@ -1,21 +1,22 @@
package ch.asynk.tankontank.engine.gfx;
+import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
-public abstract class SpriteNode extends Sprite implements Node
+public abstract class Image extends Sprite implements Drawable, Disposable
{
private Texture texture;
- public SpriteNode(Texture texture)
+ public Image(Texture texture)
{
super(texture);
this.texture = texture;
}
- public SpriteNode(TextureRegion region)
+ public Image(TextureRegion region)
{
super(region);
this.texture = null;