Class AssistantCardsController
java.lang.Object
it.polimi.ingsw.eriantys.client.gui.controllers.Controller
it.polimi.ingsw.eriantys.client.gui.controllers.AssistantCardsController
- All Implemented Interfaces:
javafx.fxml.Initializable
A class representing the controller for the
ASSISTANT_CARDS
popup scene.- See Also:
-
Field Summary
Fields inherited from class it.polimi.ingsw.eriantys.client.gui.controllers.Controller
app, client, showError, showInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.layout.Pane
A getter for thePane
object associated with the FXML tag of highest level in the*.fxml
file associated withthis
.void
initialize
(URL url, ResourceBundle resourceBundle) Gets all the child nodes representing the elements of the scene from the FXML.void
Gets the information about assistant cards from passed parameters and draws all the elements in the scene.Methods inherited from class it.polimi.ingsw.eriantys.client.gui.controllers.Controller
applyGrayscale, applyGreenShade, onChangeScene, roundBorders, setApp, setClient, setShowError, setShowInfo
-
Constructor Details
-
AssistantCardsController
public AssistantCardsController()
-
-
Method Details
-
initialize
Gets all the child nodes representing the elements of the scene from the FXML. Associates the popup event handler with the button on the scene. -
getTopLevelPane
public javafx.scene.layout.Pane getTopLevelPane()Description copied from class:Controller
A getter for thePane
object associated with the FXML tag of highest level in the*.fxml
file associated withthis
. The method is called in order to process a popup. Any controller should override the method if necessary.- Specified by:
getTopLevelPane
in classController
- Returns:
- the highest level
Pane
-
populate
Gets the information about assistant cards from passed parameters and draws all the elements in the scene.- Parameters:
assistants
- theAssistantCard
literals which the user owns in the handplayed
- the mapping between usernames and previously playedAssistantCard
literals
-