Module it.polimi.ingsw.am13
Class ViewGUIControllerWinner
java.lang.Object
it.polimi.ingsw.am13.client.view.gui.ViewGUIController
it.polimi.ingsw.am13.client.view.gui.ViewGUIControllerWinner
Controller of 'Winner' scene, where the final points and the winner are shown
-
Field Summary
FieldsModifier and TypeFieldDescriptionjavafx.scene.control.TableColumn
<PlayerLobby, String> javafx.scene.control.TableColumn
<PlayerLobby, String> javafx.scene.control.TableView
<PlayerLobby> private GameState
State of the gameprivate PlayerLobby
Player associated to the client the GUI was created byjavafx.scene.control.Label
Fields inherited from class it.polimi.ingsw.am13.client.view.gui.ViewGUIController
networkHandler, scene, stage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method cannot be calledvoid
setGameState
(GameState gameState) Sets the state of the gamevoid
setThisPlayer
(PlayerLobby thisPlayer) Sets the player associated to the client the GUI was created byvoid
This method cannot be calledvoid
showPlayerDisconnected
(PlayerLobby player) It should never be called, not implementedvoid
showPlayerReconnected
(PlayerLobby player) It should never be called, not implementedvoid
Shows a table of the players with their final points, printing the winner / winners.Methods inherited from class it.polimi.ingsw.am13.client.view.gui.ViewGUIController
getScene, setNetworkHandler, setScene, setStage, switchToScene
-
Field Details
-
winnerText
public javafx.scene.control.Label winnerText -
pointsTable
-
playerColumn
-
pointsColumn
-
state
State of the game -
thisPlayer
Player associated to the client the GUI was created by
-
-
Constructor Details
-
ViewGUIControllerWinner
public ViewGUIControllerWinner()
-
-
Method Details
-
setThisPlayer
Sets the player associated to the client the GUI was created by- Specified by:
setThisPlayer
in classViewGUIController
- Parameters:
thisPlayer
- Player associated to the client the GUI was created by
-
setGameState
Sets the state of the game- Specified by:
setGameState
in classViewGUIController
- Parameters:
gameState
- State of the game
-
getSceneTitle
- Specified by:
getSceneTitle
in classViewGUIController
- Returns:
- Title of the screen
-
showException
This method cannot be called- Specified by:
showException
in classViewGUIController
- Parameters:
e
- Exception to be shown
-
showPlayerDisconnected
It should never be called, not implemented- Specified by:
showPlayerDisconnected
in classViewGUIController
- Parameters:
player
- Player who disconnected
-
showPlayerReconnected
It should never be called, not implemented- Specified by:
showPlayerReconnected
in classViewGUIController
- Parameters:
player
- Player who reconnected
-
forceCloseApp
public void forceCloseApp()This method cannot be called- Specified by:
forceCloseApp
in classViewGUIController
-
showWinner
public void showWinner()Shows a table of the players with their final points, printing the winner / winners.
-