summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 6236478..e709bff 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -45,6 +45,11 @@ public abstract class Board extends Image implements Disposable
public float r() { return offset + r; }
+ public boolean isInSides(int sides)
+ {
+ return ((sides & s) == s);
+ }
+
public Orientation left()
{
if (this == NORTH) return NORTH_WEST;