summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index d4d1021..f1f5ca0 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -397,15 +397,6 @@ public abstract class Board implements Disposable
return getTile(coords).isOverlayEnabled(i);
}
- // public void disableOverlaysOn(GridPoint2 coords)
- // {
- // Tile tile = getTile(coords);
- // if (tile.disableOverlays())
- // tilesToDraw.add(tile);
- // else
- // tilesToDraw.remove(tile);
- // }
-
public void enableOverlayOn(GridPoint2 coords, int i, boolean enable)
{
Tile tile = getTile(coords);
@@ -415,14 +406,6 @@ public abstract class Board implements Disposable
tilesToDraw.remove(tile);
}
- // public Pawn removeTopPawnFrom(GridPoint2 coords)
- // {
- // Pawn pawn = getTopPawnAt(coords);
- // if (pawn != null)
- // removePawnFrom(pawn, coords);
- // return pawn;
- // }
-
public Pawn getTopPawnAt(GridPoint2 coords)
{
return getTile(coords).getTopPawn();
@@ -444,11 +427,6 @@ public abstract class Board implements Disposable
return n;
}
- // public Vector2 getTileCenter(GridPoint2 coords)
- // {
- // return getTile(coords).getCenter();
- // }
-
public Vector2 getPawnPosAt(Pawn pawn, GridPoint2 coords, Vector2 pos)
{
Vector2 center = getTile(coords).getCenter();
@@ -462,20 +440,6 @@ public abstract class Board implements Disposable
pushPawnAt(pawn, coords);
}
- // public void movePawnTo(Pawn pawn, GridPoint2 coords)
- // {
- // movePawnTo(pawn, coords, Orientation.KEEP);
- // }
-
- // public void movePawnTo(Pawn pawn, GridPoint2 coords, Orientation o)
- // {
- // removePawnFrom(pawn, getHexAt(pawn.getCenter()));
-
- // pushPawnAt(pawn, coords);
- // Vector2 pos = getPawnPosAt(pawn, coords, null);
- // pawn.pushMove(pos.x, pos.y, o);
- // }
-
public void movePawn(final Pawn pawn, Vector<Vector3> path)
{
removePawnFrom(pawn, getHexAt(pawn.getCenter()));
@@ -490,21 +454,6 @@ public abstract class Board implements Disposable
addPawnAnimation(pawn, seq);
}
- // public void resetPawnMoves(final Pawn pawn)
- // {
- // removePawnFrom(pawn, getHexAt(pawn.getCenter()));
-
- // AnimationSequence seq = pawn.getResetMovesAnimation();
- // seq.addAnimation(RunnableAnimation.get(pawn, new Runnable() {
- // @Override
- // public void run() {
- // GridPoint2 coords = getHexAt(pawn.getCenter());
- // pushPawnAt(pawn, coords);
- // }
- // }));
- // addPawnAnimation(pawn, seq);
- // }
-
private GridPoint2 getHexAt(Vector2 v)
{
if (v == null) return null;