Class MsgResponsePlayerJoinedRoom

All Implemented Interfaces:
Serializable

public class MsgResponsePlayerJoinedRoom extends MsgResponse implements Serializable
Response message which is sent when a player successfully joins or creates a room
See Also:
  • Field Details

    • player

      private final PlayerLobby player
      Player who joined the room
  • Constructor Details

    • MsgResponsePlayerJoinedRoom

      public MsgResponsePlayerJoinedRoom(PlayerLobby player)
      Builds a new response message with the given player
      Parameters:
      player - the player who joined the room
  • Method Details

    • getPlayer

      public PlayerLobby getPlayer()
      Returns:
      the player who joined the room