Class TrackUpdate

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

public class TrackUpdate
extends java.lang.Object
implements ModelUpdate
A model update represents the update of player that changes their position on the track. Model updates contain information to notify clients or views of an update happened on the model
  • Constructor Summary

    Constructors
    Constructor Description
    TrackUpdate​(int playerPosition)  
  • Method Summary

    Modifier and Type Method Description
    int getPlayerPosition()
    returns the current position in the track

    Methods inherited from class java.lang.Object

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

    • TrackUpdate

      public TrackUpdate​(int playerPosition)
  • Method Details

    • getPlayerPosition

      public int getPlayerPosition()
      returns the current position in the track
      Returns:
      the current position in the track