Class PlayCharacterCard
java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.GameMessage
it.polimi.ingsw.eriantys.messages.client.PlayCharacterCard
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA getter for theCharacterCardliteral requested by the user.com.google.gson.JsonObjectA getter for the arguments which the requestedCharacterCardrequire.
-
Constructor Details
-
PlayCharacterCard
-
-
Method Details
-
getCharacterCard
public int getCharacterCard()A getter for theCharacterCardliteral requested by the user.- Returns:
- the chosen
CharacterCardliteral
-
getParams
public com.google.gson.JsonObject getParams()A getter for the arguments which the requestedCharacterCardrequire.- Returns:
- a
JsonObjectcontaining all the information regarding the required arguments, if present, which the user will need to specify in order to play the card
-