Class LoginController

java.lang.Object
it.polimi.ingsw.view.gui.controllers.GUIController
it.polimi.ingsw.view.gui.controllers.LoginController

public class LoginController
extends GUIController
Java controller of the login.fxml file
  • Field Summary

    Fields inherited from class it.polimi.ingsw.view.gui.controllers.GUIController

    client
  • Constructor Summary

    Constructors
    Constructor Description
    LoginController()  
  • Method Summary

    Modifier and Type Method Description
    void checkLocal()
    Check if the game is local and in case set invisible the correct components
    void gameAlreadyExists()
    notify the player that the name of the match they tried to create is occupied by another match
    void gameCannotJoin()
    Notify the player that they cannot join the match they tried to: i.e. the match doesn't exist, the match is full or the match is already started
    void gameWait()
    Notify the player that the creation of the game they tried to join is not already completed
    void loginFailed()
    Notify the player that the username is invalid

    Methods inherited from class it.polimi.ingsw.view.gui.controllers.GUIController

    setClient

    Methods inherited from class java.lang.Object

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

    • LoginController

      public LoginController()
  • Method Details

    • checkLocal

      public void checkLocal()
      Check if the game is local and in case set invisible the correct components
    • loginFailed

      public void loginFailed()
      Notify the player that the username is invalid
    • gameAlreadyExists

      public void gameAlreadyExists()
      notify the player that the name of the match they tried to create is occupied by another match
    • gameCannotJoin

      public void gameCannotJoin()
      Notify the player that they cannot join the match they tried to: i.e. the match doesn't exist, the match is full or the match is already started
    • gameWait

      public void gameWait()
      Notify the player that the creation of the game they tried to join is not already completed