summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 625f0f2..cc60e81 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -332,6 +332,16 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
// STATES ENTRY ->
+ public void showOnBoard(Unit unit, Hex to, Orientation o)
+ {
+ setPawnOnto(unit, to, o);
+ }
+
+ public boolean setOnBoard(Unit unit, Hex to, Orientation entry)
+ {
+ return (process(unit, Move.getSet(unit, to, entry)) == 1);
+ }
+
public boolean enterBoard(Unit unit, Hex to, int allowedMoves)
{
Orientation entry = findBestEntry(unit, to, allowedMoves);
@@ -341,11 +351,6 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
return (process(unit, Move.getEnter(unit, to, entry)) == 1);
}
- public boolean setOnBoard(Unit unit, Hex to, Orientation entry)
- {
- return (process(unit, Move.getSet(unit, to, entry)) == 1);
- }
-
public int exitBoard(Unit unit)
{
return process(unit, pathBuilder.getExitMove());