Class ViewGUIControllerWinner

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

public class ViewGUIControllerWinner extends ViewGUIController
Controller of 'Winner' scene, where the final points and the winner are shown
  • Field Details

    • winnerText

      public javafx.scene.control.Label winnerText
    • pointsTable

      public javafx.scene.control.TableView<PlayerLobby> pointsTable
    • playerColumn

      public javafx.scene.control.TableColumn<PlayerLobby,String> playerColumn
    • pointsColumn

      public javafx.scene.control.TableColumn<PlayerLobby,String> pointsColumn
    • state

      private GameState state
      State of the game
    • thisPlayer

      private PlayerLobby thisPlayer
      Player associated to the client the GUI was created by
  • Constructor Details

    • ViewGUIControllerWinner

      public ViewGUIControllerWinner()
  • Method Details

    • setThisPlayer

      public void setThisPlayer(PlayerLobby thisPlayer)
      Sets the player associated to the client the GUI was created by
      Specified by:
      setThisPlayer in class ViewGUIController
      Parameters:
      thisPlayer - Player associated to the client the GUI was created by
    • setGameState

      public void setGameState(GameState gameState)
      Sets the state of the game
      Specified by:
      setGameState in class ViewGUIController
      Parameters:
      gameState - State of the game
    • getSceneTitle

      public String getSceneTitle()
      Specified by:
      getSceneTitle in class ViewGUIController
      Returns:
      Title of the screen
    • 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)
      It should never be called, not implemented
      Specified by:
      showPlayerDisconnected in class ViewGUIController
      Parameters:
      player - Player who disconnected
    • showPlayerReconnected

      public void showPlayerReconnected(PlayerLobby player)
      It should never be called, not implemented
      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
    • showWinner

      public void showWinner()
      Shows a table of the players with their final points, printing the winner / winners.