Пример #1
0
  public void proceedToNextPhase() {

    if (this.gameStateResolving.isEmpty()) this.gameStateResolving.addAll(this.gameStateNormalTurn);

    Controller controller = Instances.getControllerInstance();

    GameStateEnum gameStateEnum = this.gameStateResolving.removeFirst();
    controller.gameStateController().setGameState(gameStateEnum);
  }
Пример #2
0
  public Circle(double radius) {

    PlatformFX.runLater(
        () -> {
          this.radius = radius;
          this.circle = new javafx.scene.shape.Circle(this.radius);
          this.circle.setFill(null);
          this.circle.setStroke(Color.BLACK);

          PanelGame panelGame = Instances.getPanelGameInstance();
          panelGame.addNode(this.circle);
        });
  }