Class TurnState

java.lang.Object
it.polimi.ingsw.model.updatecontainers.TurnState
All Implemented Interfaces:
ModelUpdate

public class TurnState
extends java.lang.Object
implements ModelUpdate
A model update represents the new state of the game, i.e. an update happened in a turn manager. Model updates contain information to notify clients or views of an update happened on the model
  • Constructor Summary

    Constructors
    Constructor Description
    TurnState​(java.lang.String player, PhaseType phase)  
  • Method Summary

    Modifier and Type Method Description
    PhaseType getPhase()
    returns the current gamePhase
    java.lang.String getPlayer()
    returns the current player's username

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TurnState

      public TurnState​(java.lang.String player, PhaseType phase)
  • Method Details

    • getPlayer

      public java.lang.String getPlayer()
      returns the current player's username
      Returns:
      current player's username
    • getPhase

      public PhaseType getPhase()
      returns the current gamePhase
      Returns:
      current gamePhase