Package it.polimi.ingsw.client.gui
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 voiddisplayErrorNick()Displays on the scene the error: the inserted nickname was not available.voiddisplayWaitingOther()voidenableNicknameText()The TextField to insert the nickname is enabled to enter it.voidremoveErrorNickFromScreen()voidremoveWaitingOtherFromScreen()Sets invisible the text that states that someone else is choosing his nickname.
-
Constructor Details
-
NicknameController
public NicknameController()
-
-
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.
-