Class ViewGUIControllerInit

java.lang.Object
it.polimi.ingsw.am13.client.view.gui.ViewGUIController
it.polimi.ingsw.am13.client.view.gui.ViewGUIControllerInit

public class ViewGUIControllerInit extends ViewGUIController
Controller of 'Init' scene, where the player must complete the initialization part of the game
  • Field Details

    • descriptionLabel

      public javafx.scene.control.Label descriptionLabel
    • firstChoiceImage

      public javafx.scene.image.ImageView firstChoiceImage
    • secondChoiceImage

      public javafx.scene.image.ImageView secondChoiceImage
    • thisPlayer

      private PlayerLobby thisPlayer
      The player associated to this ViewGUIControllerInit
    • state

      private GameState state
      The representation of the state of the game
    • log

      private LogGUI log
      Handler of the logs
  • Constructor Details

    • ViewGUIControllerInit

      public ViewGUIControllerInit()
  • Method Details

    • getSceneTitle

      public String getSceneTitle()
      Specified by:
      getSceneTitle in class ViewGUIController
      Returns:
      the title of the scene
    • showException

      public void showException(Exception e)
      This method cannot be called
      Specified by:
      showException in class ViewGUIController
      Parameters:
      e - Exception to be shown
    • showPlayerDisconnected

      public void showPlayerDisconnected(PlayerLobby player)
      This method cannot be called
      Specified by:
      showPlayerDisconnected in class ViewGUIController
      Parameters:
      player - Player who disconnected
    • showPlayerReconnected

      public void showPlayerReconnected(PlayerLobby player)
      This method cannot be called
      Specified by:
      showPlayerReconnected in class ViewGUIController
      Parameters:
      player - Player who reconnected
    • forceCloseApp

      public void forceCloseApp()
      This method cannot be called
      Specified by:
      forceCloseApp in class ViewGUIController
    • setThisPlayer

      public void setThisPlayer(PlayerLobby thisPlayer)
      Method that sets the player
      Specified by:
      setThisPlayer in class ViewGUIController
      Parameters:
      thisPlayer - the player associated to this ViewGUIController
    • setGameState

      public void setGameState(GameState state)
      Method that sets the gameState
      Specified by:
      setGameState in class ViewGUIController
      Parameters:
      state - the representation of the state of the game
    • showStartGame

      public void showStartGame()
      Shows the start of the game, by showing the two sides of the starter card the player can choose from
    • showPlayedStarter

      public void showPlayedStarter(PlayerLobby player)
      If the player who played the starter card is thisPlayer, it shows the two personal objective cards the player can choose from
      Parameters:
      player - the player who played his starter card
    • showChosenPersonalObjective

      public void showChosenPersonalObjective(PlayerLobby player)
      If the player who has chosen his personal objective is thisPlayer, it shows that the player should wait for the other players to finish their initial phase
      Parameters:
      player - the player who has chosen his personal objective