Class GUIController

java.lang.Object
it.polimi.ingsw.view.gui.controllers.GUIController
Direct Known Subclasses:
ConnectionController, EndGameController, FatalErrorController, GameboardController, LoginController, NumberOfPlayersController, PlayerboardController

public abstract class GUIController
extends java.lang.Object
A generic fxml file controller
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected Client client  
  • Constructor Summary

    Constructors
    Constructor Description
    GUIController()  
  • Method Summary

    Modifier and Type Method Description
    Client setClient​(Client client)
    Set the client of this controller.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • client

      protected Client client
  • Constructor Details

    • GUIController

      public GUIController()
  • Method Details

    • setClient

      public Client setClient​(Client client)
      Set the client of this controller. The client will be set only once.
      Parameters:
      client - the client to set
      Returns:
      the client of this controller, can be the player just set or another if it was already set.