public void clearMovable() { for (Position p : currentMovementTiles) { if (p != null) { playerPositionButtons[p.getXPosition()][p.getYPosition()].setId("clear"); } } }
public void updateMoveablePositions(Position[] moveable) { currentMovementTiles = moveable; for (Position p : moveable) { if (p != null) { playerPositionButtons[p.getXPosition()][p.getYPosition()].setId("moveable"); } } }
public void clearPlayers(Position position) { playerPositionButtons[position.getXPosition()][position.getYPosition()].setId("clear"); }
public void removeVerticalWall(Position position) { verticalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallRec"); verticalWalls[position.getXPosition() + 1][position.getYPosition() + 1].setId("wallRec"); }
public void removeHorizontalWall(Position position) { horizontalWalls[position.getXPosition()][position.getYPosition()].setId("wallRec"); horizontalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallRec"); }
public void placeVerticalWalls(Position position) { verticalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallV"); verticalWalls[position.getXPosition() + 1][position.getYPosition() + 1].setId("wallV"); }
public void placeHorizontalWalls(Position position) { horizontalWalls[position.getXPosition()][position.getYPosition()].setId("wallR"); horizontalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallR"); }
public void updatePlayer(Position position) { playerPositionButtons[position.getXPosition()][position.getYPosition()].setId("player"); }