Class WizardsController
java.lang.Object
it.polimi.ingsw.eriantys.client.gui.controllers.Controller
it.polimi.ingsw.eriantys.client.gui.controllers.WizardsController
- All Implemented Interfaces:
javafx.fxml.Initializable
A class representing the controller for the
WIZARDS popup scene.- See Also:
-
PopupName.WIZARDSScene
-
Field Summary
Fields inherited from class it.polimi.ingsw.eriantys.client.gui.controllers.Controller
app, client, showError, showInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.layout.PaneA getter for thePaneobject associated with the FXML tag of highest level in the*.fxmlfile associated withthis.voidinitialize(URL url, ResourceBundle resourceBundle) Gets all the child nodes representing the elements of the scene from the FXML.voidGets the information about tower colors from passed parameter 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
-
WizardsController
public WizardsController()
-
-
Method Details
-
initialize
Gets all the child nodes representing the elements of the scene from the FXML. Associates the event handlers with the images on the scene. -
getTopLevelPane
public javafx.scene.layout.Pane getTopLevelPane()Description copied from class:ControllerA getter for thePaneobject associated with the FXML tag of highest level in the*.fxmlfile associated withthis. The method is called in order to process a popup. Any controller should override the method if necessary.- Specified by:
getTopLevelPanein classController- Returns:
- the highest level
Pane
-
populate
Gets the information about tower colors from passed parameter and draws all the elements in the scene.- Parameters:
wizards- the availableWizardliterals to choose
-