summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-09 01:31:07 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-09 01:31:07 +0100
commite3a1e2affc02555b5718493ac7f0a2ec8affa588 (patch)
tree48153e7c784f5ae6d64cd28d83c0dfde0a6e6846 /core/src
parent6d53fc7983a13b65aee3ddd4774ff469fa3106c5 (diff)
downloadRustAndDust-e3a1e2affc02555b5718493ac7f0a2ec8affa588.zip
RustAndDust-e3a1e2affc02555b5718493ac7f0a2ec8affa588.tar.gz
Image: remove blocked and visible as it is no more used in Hud
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/Image.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/gfx/Image.java b/core/src/ch/asynk/tankontank/engine/gfx/Image.java
index daee617..a85cabf 100644
--- a/core/src/ch/asynk/tankontank/engine/gfx/Image.java
+++ b/core/src/ch/asynk/tankontank/engine/gfx/Image.java
@@ -9,8 +9,6 @@ import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
public class Image extends Sprite implements Drawable, Disposable
{
- public boolean blocked;
- public boolean visible;
private Texture texture;
protected Image()
@@ -21,16 +19,12 @@ public class Image extends Sprite implements Drawable, Disposable
{
super(texture);
this.texture = texture;
- this.visible = true;
- this.blocked = false;
}
public Image(TextureRegion region)
{
super(region);
this.texture = null;
- this.visible = true;
- this.blocked = false;
}
@Override
@@ -41,7 +35,6 @@ public class Image extends Sprite implements Drawable, Disposable
public boolean hit(float x, float y)
{
- if (blocked || !visible) return false;
return ((x >= getX()) && (y >= getY()) && (x <= (getX() + getWidth())) && (y <= (getY() + getHeight())));
}
@@ -59,14 +52,12 @@ public class Image extends Sprite implements Drawable, Disposable
@Override
public void draw(Batch batch)
{
- if (!visible) return;
super.draw(batch);
}
@Override
public void drawDebug(ShapeRenderer shapes)
{
- if (!visible) return;
shapes.rect(getX(), getY(), (getWidth() / 2f), (getHeight() / 2f), getWidth(), getHeight(), getScaleX(), getScaleY(), getRotation());
}
}