Class MsgResponseChosenPersonalObjective

java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
it.polimi.ingsw.am13.network.socket.message.response.MsgResponseChosenPersonalObjective
All Implemented Interfaces:
Serializable

public class MsgResponseChosenPersonalObjective extends MsgResponse implements Serializable
Response message containing the information describing the choice of a personal objective
See Also:
  • Field Details

    • player

      private final PlayerLobby player
      The player that has chosen the personal objective
    • chosenObjective

      private final CardObjectiveIF chosenObjective
      The chosen personal objective
  • Constructor Details

    • MsgResponseChosenPersonalObjective

      public MsgResponseChosenPersonalObjective(PlayerLobby player, CardObjectiveIF chosenObjective)
      Builds a new response message with the given player and chosen personal objective
      Parameters:
      player - the player that has chosen the personal objective
      chosenObjective - the chosen personal objective
  • Method Details

    • getPlayer

      public PlayerLobby getPlayer()
      Returns:
      the player that has chosen the personal objective
    • getChosenObjective

      public CardObjectiveIF getChosenObjective()
      Returns:
      the chosen personal objective