Module it.polimi.ingsw.am13
Class ViewGUIControllerInit
java.lang.Object
it.polimi.ingsw.am13.client.view.gui.ViewGUIController
it.polimi.ingsw.am13.client.view.gui.ViewGUIControllerInit
Controller of 'Init' scene, where the player must complete the initialization part of the game
-
Field Summary
FieldsModifier and TypeFieldDescriptionjavafx.scene.control.Label
javafx.scene.image.ImageView
private LogGUI
Handler of the logsjavafx.scene.image.ImageView
private GameState
The representation of the state of the gameprivate PlayerLobby
The player associated to thisViewGUIControllerInit
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 state) Method that sets the gameStatevoid
setThisPlayer
(PlayerLobby thisPlayer) Method that sets the playervoid
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 phasevoid
This method cannot be calledvoid
showPlayedStarter
(PlayerLobby player) If the player who played the starter card is thisPlayer, it shows the two personal objective cards the player can choose fromvoid
showPlayerDisconnected
(PlayerLobby player) This method cannot be calledvoid
showPlayerReconnected
(PlayerLobby player) This method cannot be calledvoid
Shows the start of the game, by showing the two sides of the starter card the player can choose fromMethods inherited from class it.polimi.ingsw.am13.client.view.gui.ViewGUIController
getScene, setNetworkHandler, setScene, setStage, switchToScene
-
Field Details
-
descriptionLabel
public javafx.scene.control.Label descriptionLabel -
firstChoiceImage
public javafx.scene.image.ImageView firstChoiceImage -
secondChoiceImage
public javafx.scene.image.ImageView secondChoiceImage -
thisPlayer
The player associated to thisViewGUIControllerInit
-
state
The representation of the state of the game -
log
Handler of the logs
-
-
Constructor Details
-
ViewGUIControllerInit
public ViewGUIControllerInit()
-
-
Method Details
-
getSceneTitle
- Specified by:
getSceneTitle
in classViewGUIController
- Returns:
- the title of the scene
-
showException
This method cannot be called- Specified by:
showException
in classViewGUIController
- Parameters:
e
- Exception to be shown
-
showPlayerDisconnected
This method cannot be called- Specified by:
showPlayerDisconnected
in classViewGUIController
- Parameters:
player
- Player who disconnected
-
showPlayerReconnected
This method cannot be called- Specified by:
showPlayerReconnected
in classViewGUIController
- Parameters:
player
- Player who reconnected
-
forceCloseApp
public void forceCloseApp()This method cannot be called- Specified by:
forceCloseApp
in classViewGUIController
-
setThisPlayer
Method that sets the player- Specified by:
setThisPlayer
in classViewGUIController
- Parameters:
thisPlayer
- the player associated to thisViewGUIController
-
setGameState
Method that sets the gameState- Specified by:
setGameState
in classViewGUIController
- 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
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
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
-