java.lang.Object
it.polimi.ingsw.view.inputManagers.InputManager
it.polimi.ingsw.view.inputManagers.GodChoiceInputManager
public class GodChoiceInputManager extends InputManager
Handles inputs regarding the god choice and the match reload
- 
Field SummaryFields inherited from class it.polimi.ingsw.view.inputManagers.InputManagerclient, inputCountdown, isWaitingForInput, view
- 
Constructor SummaryConstructors Constructor Description GodChoiceInputManager(Client client, java.util.List<GodData> availableGods, int godsToChoose)Constructor to be called to manage gods choice
- 
Method SummaryModifier and Type Method Description voidmanageInput(java.lang.String input)Determines how to handle the received input based on the internal state CHOOSE_INITIAL_GODS: the lobby owner has to choose the gods for all of the players CHOOSE_PERSONAL_GOD: the user has to choose its own godMethods inherited from class it.polimi.ingsw.view.inputManagers.InputManagercleanInput, setWaitingForInput, startTimer, stopTimer
- 
Constructor Details- 
GodChoiceInputManagerpublic GodChoiceInputManager(Client client, java.util.List<GodData> availableGods, int godsToChoose)Constructor to be called to manage gods choice- Parameters:
- client- the client to manage the inputs for
- availableGods- the list of gods to choose from
- godsToChoose- the number of gods to choose
 
 
- 
- 
Method Details- 
manageInputpublic void manageInput(java.lang.String input)Determines how to handle the received input based on the internal state- CHOOSE_INITIAL_GODS: the lobby owner has to choose the gods for all of the players
- CHOOSE_PERSONAL_GOD: the user has to choose its own god
 - Specified by:
- manageInputin class- InputManager
- Parameters:
- input- the user input
 
 
-