Class MsgResponsePlayedStarter

All Implemented Interfaces:
Serializable

public class MsgResponsePlayedStarter extends MsgResponse implements Serializable
Response message which is sent when a player has successfully played his starter card
See Also:
  • Field Details

    • player

      private final PlayerLobby player
      The player that has played a starter
    • starter

      private final CardStarterIF starter
      The starter that has been played
    • availableCoords

      private final List<Coordinates> availableCoords
      The list of coordinates that are available after playing the starter
  • Constructor Details

    • MsgResponsePlayedStarter

      public MsgResponsePlayedStarter(PlayerLobby player, CardStarterIF starter, List<Coordinates> availableCoords)
      Builds a new response message with the given player, the played starter and the available coordinates
      Parameters:
      player - the player that has played a starter
      starter - the starter that has been played
      availableCoords - the list of coordinates that are available after playing the card
  • Method Details

    • getPlayer

      public PlayerLobby getPlayer()
      Returns:
      the player that has played a starter
    • getStarter

      public CardStarterIF getStarter()
      Returns:
      the starter that has been played
    • getAvailableCoords

      public List<Coordinates> getAvailableCoords()
      Returns:
      the list of coordinates that are available after playing the starter