Class TurnManager

java.lang.Object
it.polimi.ingsw.model.TurnManager
All Implemented Interfaces:
IGameState

public class TurnManager
extends java.lang.Object
implements IGameState
Represent the current phase of the game and manages the players turn
  • Constructor Summary

    Constructors
    Constructor Description
    TurnManager​(Game game, java.util.List<java.lang.String> usernames)  
  • Method Summary

    Modifier and Type Method Description
    PhaseType getCurrentPhase()  
    java.lang.String getCurrentPlayer()  
    Game getGame()  
    Message handleAction​(Action action)
    Perform an action and change current turn state
    java.util.List<java.lang.String> startGame()
    Start game

    Methods inherited from class java.lang.Object

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