summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Orientation.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Orientation.java b/core/src/ch/asynk/tankontank/engine/Orientation.java
index b5fe530..550bb9f 100644
--- a/core/src/ch/asynk/tankontank/engine/Orientation.java
+++ b/core/src/ch/asynk/tankontank/engine/Orientation.java
@@ -99,6 +99,11 @@ public enum Orientation
}
}
+ public static Orientation fromAdj(Tile from, Tile to)
+ {
+ return fromAdj(from.col, from.row, to.col, to.row);
+ }
+
public static Orientation fromAdj(int col0, int row0, int col1, int row1)
{
Orientation o = KEEP;