Package it.polimi.ingsw.network.client
Interface ClientTurnManagerInterface
- All Known Implementing Classes:
CliTurnManager,GuiTurnManager
public interface ClientTurnManagerInterface
Interface of the turn manager client side
-
Method Summary
Modifier and Type Method Description voidcurrentPhasePrint()Manages the possible actions based on the current phasejava.lang.StringgetCurrentPlayer()Returns the username of the current playervoidsetCurrentPlayer(java.lang.String currentPlayer)Sets the String passed as parameter as current playervoidsetStateIsPlayerChanged(TurnState newState)set new phase and new currentPlayer
-
Method Details
-
currentPhasePrint
void currentPhasePrint()Manages the possible actions based on the current phase -
getCurrentPlayer
java.lang.String getCurrentPlayer()Returns the username of the current player- Returns:
- the username of the current player
-
setCurrentPlayer
void setCurrentPlayer(java.lang.String currentPlayer)Sets the String passed as parameter as current player- Parameters:
currentPlayer- , username of the player that will be the current
-
setStateIsPlayerChanged
set new phase and new currentPlayer- Parameters:
newState- the new Turn State
-