コード例 #1
0
 public void clearMovable() {
   for (Position p : currentMovementTiles) {
     if (p != null) {
       playerPositionButtons[p.getXPosition()][p.getYPosition()].setId("clear");
     }
   }
 }
コード例 #2
0
 public void updateMoveablePositions(Position[] moveable) {
   currentMovementTiles = moveable;
   for (Position p : moveable) {
     if (p != null) {
       playerPositionButtons[p.getXPosition()][p.getYPosition()].setId("moveable");
     }
   }
 }
コード例 #3
0
 public void clearPlayers(Position position) {
   playerPositionButtons[position.getXPosition()][position.getYPosition()].setId("clear");
 }
コード例 #4
0
 public void removeVerticalWall(Position position) {
   verticalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallRec");
   verticalWalls[position.getXPosition() + 1][position.getYPosition() + 1].setId("wallRec");
 }
コード例 #5
0
 public void removeHorizontalWall(Position position) {
   horizontalWalls[position.getXPosition()][position.getYPosition()].setId("wallRec");
   horizontalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallRec");
 }
コード例 #6
0
 public void placeVerticalWalls(Position position) {
   verticalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallV");
   verticalWalls[position.getXPosition() + 1][position.getYPosition() + 1].setId("wallV");
 }
コード例 #7
0
 public void placeHorizontalWalls(Position position) {
   horizontalWalls[position.getXPosition()][position.getYPosition()].setId("wallR");
   horizontalWalls[position.getXPosition() + 1][position.getYPosition()].setId("wallR");
 }
コード例 #8
0
 public void updatePlayer(Position position) {
   playerPositionButtons[position.getXPosition()][position.getYPosition()].setId("player");
 }