Module it.polimi.ingsw.am13
Class MsgCommandPlayCard
java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.command.MsgCommand
it.polimi.ingsw.am13.network.socket.message.command.MsgCommandPlayCard
- All Implemented Interfaces:
Serializable
Command message which is sent to play a card
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CardPlayableIF
The card the player wants to playprivate final Coordinates
The coordinates in the field where the card should be playedprivate final Side
The side on which the card should be played -
Constructor Summary
ConstructorsConstructorDescriptionMsgCommandPlayCard
(CardPlayableIF card, Coordinates coords, Side side) Creates the message by setting the attributes to the parameters -
Method Summary
-
Field Details
-
card
The card the player wants to play -
coords
The coordinates in the field where the card should be played -
side
The side on which the card should be played
-
-
Constructor Details
-
MsgCommandPlayCard
Creates the message by setting the attributes to the parameters- Parameters:
card
- the player wants to playcoords
- where the card should be playedside
- on which the card should be played
-
-
Method Details
-
getCard
- Returns:
- the card the player wants to play
-
getSide
- Returns:
- the side on which the card should be played
-
getCoords
- Returns:
- the coordinates in the field where the card should be played
-