Class LeaderSetup

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

public class LeaderSetup
extends java.lang.Object
implements ModelUpdate
A special model update used to communicate to clients or views the initial leader cards of a player. Model updates contain information to notify clients or views of an update happened on the model
  • Constructor Summary

    Constructors
    Constructor Description
    LeaderSetup​(java.util.List<java.lang.Integer> leaderList)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.Integer> getLeaderList()
    returns the ID list of the 4 leader cards selected fot that specific player

    Methods inherited from class java.lang.Object

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

    • LeaderSetup

      public LeaderSetup​(java.util.List<java.lang.Integer> leaderList)
  • Method Details

    • getLeaderList

      public java.util.List<java.lang.Integer> getLeaderList()
      returns the ID list of the 4 leader cards selected fot that specific player
      Returns:
      the ID list of the 4 leader cards selected fot that specific player