diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-21 02:06:28 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-21 02:06:28 +0200 |
commit | 2850bbff24c435eb133e6b8d68a391db97e6a9f8 (patch) | |
tree | a9e8889016b919ede91b2b1e4f5486c61242bfa6 /core | |
parent | 4d4619fb573fc1c9b72df5cad8c26b7de80c8578 (diff) | |
download | RustAndDust-2850bbff24c435eb133e6b8d68a391db97e6a9f8.zip RustAndDust-2850bbff24c435eb133e6b8d68a391db97e6a9f8.tar.gz |
SpriteNode -> Image does not implements Node anymore
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/PawnNode.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/Image.java (renamed from core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java) | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PawnNode.java b/core/src/ch/asynk/tankontank/engine/PawnNode.java index 600c6dd..e095042 100644 --- a/core/src/ch/asynk/tankontank/engine/PawnNode.java +++ b/core/src/ch/asynk/tankontank/engine/PawnNode.java @@ -6,12 +6,12 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Vector3; -import ch.asynk.tankontank.engine.gfx.SpriteNode; +import ch.asynk.tankontank.engine.gfx.Image; import ch.asynk.tankontank.engine.gfx.animations.MoveToAnimation; import ch.asynk.tankontank.engine.gfx.animations.RunnableAnimation; import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence; -public class PawnNode extends SpriteNode implements Pawn +public class PawnNode extends Image implements Pawn { private static final float MOVE_TIME = 0.3f; 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; |