summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-28 20:08:23 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-28 20:08:23 +0100
commitd162488fc655cf55bcf7399ecdb4df8b900694c6 (patch)
treed656a473f55daea25cc372274fae38f17ebb8c97 /core/src
parent8c4e1b6e2c1e013de9ee4ff079cc61dbf3f0591c (diff)
downloadRustAndDust-d162488fc655cf55bcf7399ecdb4df8b900694c6.zip
RustAndDust-d162488fc655cf55bcf7399ecdb4df8b900694c6.tar.gz
add missing @Override for hit method in some ui widgets
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Engagement.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Statistics.java1
-rw-r--r--core/src/ch/asynk/tankontank/ui/OkCancel.java1
3 files changed, 3 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Engagement.java b/core/src/ch/asynk/tankontank/game/hud/Engagement.java
index 9a70688..805b7d6 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Engagement.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Engagement.java
@@ -156,6 +156,7 @@ public class Engagement extends Patch implements Animation
rerollY = (d1Animation.getY() + d1Animation.getHeight() + VSPACING);
}
+ @Override
public boolean hit(float x, float y)
{
return rect.contains(x, y);
diff --git a/core/src/ch/asynk/tankontank/game/hud/Statistics.java b/core/src/ch/asynk/tankontank/game/hud/Statistics.java
index d481fae..93486c8 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Statistics.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Statistics.java
@@ -75,6 +75,7 @@ public class Statistics extends Patch
visible = true;
}
+ @Override
public boolean hit(float x, float y)
{
if (okBtn.hit(x, y))
diff --git a/core/src/ch/asynk/tankontank/ui/OkCancel.java b/core/src/ch/asynk/tankontank/ui/OkCancel.java
index 4a8507f..3ed64d6 100644
--- a/core/src/ch/asynk/tankontank/ui/OkCancel.java
+++ b/core/src/ch/asynk/tankontank/ui/OkCancel.java
@@ -78,6 +78,7 @@ public class OkCancel extends Patch
cancelBtn.visible = false;
}
+ @Override
public boolean hit(float x, float y)
{
if (okBtn.hit(x, y)) {