java.lang.Object
it.polimi.ingsw.view.inputManagers.InputManager
it.polimi.ingsw.view.inputManagers.LoginManager
public class LoginManager extends InputManager
-
Field Summary
Fields inherited from class it.polimi.ingsw.view.inputManagers.InputManager
client, inputCountdown, isWaitingForInput, view
-
Constructor Summary
Constructors Constructor Description LoginManager(Client client, boolean isIpAlreadySet)
LoginManager(Client client, java.util.List<java.lang.String> savedConfigs)
-
Method Summary
Modifier and Type Method Description void
generateOptions()
void
manageInput(java.lang.String input)
This method is called by the scanner when it receives an input and the InputManager parameter set inside the viewInterface class is a LoginManager object; When the client calls one of the login related methods it will also set the view's InputManager as a LoginManager.Methods inherited from class it.polimi.ingsw.view.inputManagers.InputManager
cleanInput, setWaitingForInput, startTimer, stopTimer
-
Constructor Details
-
Method Details
-
manageInput
public void manageInput(java.lang.String input)This method is called by the scanner when it receives an input and the InputManager parameter set inside the viewInterface class is a LoginManager object; When the client calls one of the login related methods it will also set the view's InputManager as a LoginManager. The Manager that is set inside the view class represents the "state" of our program, we can set it through an enum or with a standard setter from Client / MessageParser This method is called inside a synchronized block to avoid being called while the other thread is setting inputManager with a different obj.- Specified by:
manageInput
in classInputManager
- Parameters:
input
- is the input of the user
-
generateOptions
public void generateOptions()
-