diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 5 |
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; |