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
    void currentPhasePrint()
    Manages the possible actions based on the current phase
    java.lang.String getCurrentPlayer()
    Returns the username of the current player
    void setCurrentPlayer​(java.lang.String currentPlayer)
    Sets the String passed as parameter as current player
    void setStateIsPlayerChanged​(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

      void setStateIsPlayerChanged​(TurnState newState)
      set new phase and new currentPlayer
      Parameters:
      newState - the new Turn State