All Implemented Interfaces:
Serializable

public class MsgCommandPlayCard extends MsgCommand implements Serializable
Command message which is sent to play a card
See Also:
  • Field Details

    • card

      private final CardPlayableIF card
      The card the player wants to play
    • coords

      private final Coordinates coords
      The coordinates in the field where the card should be played
    • side

      private final Side side
      The side on which the card should be played
  • Constructor Details

    • MsgCommandPlayCard

      public MsgCommandPlayCard(CardPlayableIF card, Coordinates coords, Side side)
      Creates the message by setting the attributes to the parameters
      Parameters:
      card - the player wants to play
      coords - where the card should be played
      side - on which the card should be played
  • Method Details

    • getCard

      public CardPlayableIF getCard()
      Returns:
      the card the player wants to play
    • getSide

      public Side getSide()
      Returns:
      the side on which the card should be played
    • getCoords

      public Coordinates getCoords()
      Returns:
      the coordinates in the field where the card should be played