Class PlayCharacterCard

All Implemented Interfaces:
Serializable

public class PlayCharacterCard extends GameMessage
A GameMessage sent by a client in order to inform the server of the CharacterCard literal chosen by the user in the current action phase.
See Also:
  • Constructor Details

    • PlayCharacterCard

      public PlayCharacterCard(String sender, int characterCard, String paramsJson)
  • Method Details

    • getCharacterCard

      public int getCharacterCard()
      A getter for the CharacterCard literal requested by the user.
      Returns:
      the chosen CharacterCard literal
    • getParams

      public com.google.gson.JsonObject getParams()
      A getter for the arguments which the requested CharacterCard require.
      Returns:
      a JsonObject containing all the information regarding the required arguments, if present, which the user will need to specify in order to play the card