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
-
Method Summary
Modifier and TypeMethodDescriptionint
A getter for theCharacterCard
literal requested by the user.com.google.gson.JsonObject
A getter for the arguments which the requestedCharacterCard
require.
-
Constructor Details
-
PlayCharacterCard
-
-
Method Details
-
getCharacterCard
public int getCharacterCard()A getter for theCharacterCard
literal requested by the user.- Returns:
- the chosen
CharacterCard
literal
-
getParams
public com.google.gson.JsonObject getParams()A getter for the arguments which the requestedCharacterCard
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
-