From 6b52891a0206ea97157009ab77ea4422a3d20a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 3 Oct 2014 14:19:21 +0200 Subject: Board: comment out unused methods --- core/src/ch/asynk/tankontank/engine/Board.java | 88 +++++++++++++------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index d6ee64d..b124389 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -386,14 +386,14 @@ 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 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) { @@ -404,13 +404,13 @@ 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 removeTopPawnFrom(GridPoint2 coords) + // { + // Pawn pawn = getTopPawnAt(coords); + // if (pawn != null) + // removePawnFrom(pawn, coords); + // return pawn; + // } public Pawn getTopPawnAt(GridPoint2 coords) { @@ -433,10 +433,10 @@ public abstract class Board implements Disposable return n; } - public Vector2 getTileCenter(GridPoint2 coords) - { - return getTile(coords).getCenter(); - } + // public Vector2 getTileCenter(GridPoint2 coords) + // { + // return getTile(coords).getCenter(); + // } public Vector2 getPawnPosAt(Pawn pawn, GridPoint2 coords, Vector2 pos) { @@ -457,19 +457,19 @@ 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) + // { + // movePawnTo(pawn, coords, Orientation.KEEP); + // } - public void movePawnTo(Pawn pawn, GridPoint2 coords, Orientation o) - { - removePawnFrom(pawn, getHexAt(pawn.getLastPosition())); + // public void movePawnTo(Pawn pawn, GridPoint2 coords, Orientation o) + // { + // removePawnFrom(pawn, getHexAt(pawn.getLastPosition())); - pushPawnAt(pawn, coords); - Vector2 pos = getPawnPosAt(pawn, coords, null); - pawn.pushMove(pos.x, pos.y, o); - } + // pushPawnAt(pawn, coords); + // Vector2 pos = getPawnPosAt(pawn, coords, null); + // pawn.pushMove(pos.x, pos.y, o); + // } public void movePawn(final Pawn pawn, Vector path) { @@ -487,20 +487,20 @@ public abstract class Board implements Disposable addPawnAnimation(pawn, seq); } - public void resetPawnMoves(final Pawn pawn) - { - removePawnFrom(pawn, getHexAt(pawn.getLastPosition())); - - AnimationSequence seq = pawn.getResetMovesAnimation(); - seq.addAnimation(RunnableAnimation.get(pawn, new Runnable() { - @Override - public void run() { - GridPoint2 coords = getHexAt(pawn.getLastPosition()); - pushPawnAt(pawn, coords); - } - })); - addPawnAnimation(pawn, seq); - } + // public void resetPawnMoves(final Pawn pawn) + // { + // removePawnFrom(pawn, getHexAt(pawn.getLastPosition())); + + // AnimationSequence seq = pawn.getResetMovesAnimation(); + // seq.addAnimation(RunnableAnimation.get(pawn, new Runnable() { + // @Override + // public void run() { + // GridPoint2 coords = getHexAt(pawn.getLastPosition()); + // pushPawnAt(pawn, coords); + // } + // })); + // addPawnAnimation(pawn, seq); + // } private GridPoint2 getHexAt(Vector3 v) { -- cgit v1.1-2-g2b99