summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Piece.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Piece.java')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Piece.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Piece.java b/core/src/ch/asynk/gdx/boardgame/Piece.java
index b08970c..6944afc 100644
--- a/core/src/ch/asynk/gdx/boardgame/Piece.java
+++ b/core/src/ch/asynk/gdx/boardgame/Piece.java
@@ -123,4 +123,15 @@ public class Piece implements Drawable, Positionable, Rotable, Scalable
float h = getHeight();
shapeRenderer.rect(getX(), getY(), (w / 2f), (h / 2f), w, h, sprite.getScaleX(), sprite.getScaleY(), getRotation());
}
+
+ public int getAvailableMP()
+ {
+ return 0;
+ }
+
+ public int moveCost(Tile from, Tile to, Orientation orientation)
+ {
+ // Integer.MAX_VALUE means impracticable
+ return Integer.MAX_VALUE;
+ }
}