Class LeaderUpdate

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

public class LeaderUpdate
extends java.lang.Object
implements ModelUpdate
A model update represents an update concerning a leader card. Model updates contain information to notify clients or views of an update happened on the model
  • Constructor Summary

    Constructors
    Constructor Description
    LeaderUpdate​(int cardId)  
  • Method Summary

    Modifier and Type Method Description
    int getCardId()
    returns the ID of the card that has been activated or discarded (these 2 cases are distinguished by message type)

    Methods inherited from class java.lang.Object

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

    • LeaderUpdate

      public LeaderUpdate​(int cardId)
  • Method Details

    • getCardId

      public int getCardId()
      returns the ID of the card that has been activated or discarded (these 2 cases are distinguished by message type)
      Returns:
      the ID of the card that has been activated or discarded