Class GuiTurnManager

java.lang.Object
it.polimi.ingsw.network.client.GuiTurnManager
All Implemented Interfaces:
ClientTurnManagerInterface

public class GuiTurnManager
extends java.lang.Object
implements ClientTurnManagerInterface
Class instantiated once a game is played in GUI configuration. Manages turns client side
  • Constructor Summary

    Constructors
    Constructor Description
    GuiTurnManager​(Client client, ViewInterface view)
    Constructor for GuiTurnManager class
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait