summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/hud
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-04 11:37:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-04 11:37:41 +0100
commit6d679e2f77cd35ea3e8e6cc4e3315b87afe43114 (patch)
tree4096ef1b2f5feabf763f764992c620feee481cb0 /core/src/ch/asynk/tankontank/game/hud
parentbcc59be0f6af5dcab805ed0fa251bbc4bda05742 (diff)
downloadRustAndDust-6d679e2f77cd35ea3e8e6cc4e3315b87afe43114.zip
RustAndDust-6d679e2f77cd35ea3e8e6cc4e3315b87afe43114.tar.gz
hud...: replace contains(float, float) with hit(float, float)
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/hud')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Bg.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/UnitDock.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Bg.java b/core/src/ch/asynk/tankontank/game/hud/Bg.java
index f862088..c88b985 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Bg.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Bg.java
@@ -27,7 +27,7 @@ public class Bg implements Drawable, Disposable
rect.height = h;
}
- public boolean contains(float x, float y)
+ public boolean hit(float x, float y)
{
return rect.contains(x, y);
}
diff --git a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java
index c111165..5e76c8e 100644
--- a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java
+++ b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java
@@ -70,7 +70,7 @@ public class UnitDock extends Bg
}
@Override
- public boolean contains(float x, float y)
+ public boolean hit(float x, float y)
{
return scaledRect.contains(x, y);
}