Class NicknameController

java.lang.Object
it.polimi.ingsw.client.gui.NicknameController

public class NicknameController
extends java.lang.Object
Manages the Nickname scene of the GUI.
  • Constructor Summary

    Constructors 
    Constructor Description
    NicknameController()  
  • Method Summary

    Modifier and Type Method Description
    void displayErrorNick()
    Displays on the scene the error: the inserted nickname was not available.
    void displayWaitingOther()  
    void enableNicknameText()
    The TextField to insert the nickname is enabled to enter it.
    void removeErrorNickFromScreen()  
    void removeWaitingOtherFromScreen()
    Sets invisible the text that states that someone else is choosing his nickname.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • displayErrorNick

      public void displayErrorNick()
      Displays on the scene the error: the inserted nickname was not available. The player needs to try with a different one.
    • removeErrorNickFromScreen

      public void removeErrorNickFromScreen()
    • displayWaitingOther

      public void displayWaitingOther()
    • removeWaitingOtherFromScreen

      public void removeWaitingOtherFromScreen()
      Sets invisible the text that states that someone else is choosing his nickname.
    • enableNicknameText

      public void enableNicknameText()
      The TextField to insert the nickname is enabled to enter it.