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

public class AssistantCardsController extends Controller
A class representing the controller for the ASSISTANT_CARDS popup scene.
See Also:
  • Constructor Details

    • AssistantCardsController

      public AssistantCardsController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      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 the Pane object associated with the FXML tag of highest level in the *.fxml file associated with this. The method is called in order to process a popup. Any controller should override the method if necessary.
      Specified by:
      getTopLevelPane in class Controller
      Returns:
      the highest level Pane
    • populate

      public void populate(List<String> assistants, Map<String,String> played)
      Gets the information about assistant cards from passed parameters and draws all the elements in the scene.
      Parameters:
      assistants - the AssistantCard literals which the user owns in the hand
      played - the mapping between usernames and previously played AssistantCard literals