All Implemented Interfaces:
Serializable

public class MsgCommandChat extends MsgCommand implements Serializable
Command message to send a chat message
See Also:
  • Field Details

    • text

      private final String text
      The text of the message
    • receivers

      private final List<PlayerLobby> receivers
      The receivers of the message
  • Constructor Details

    • MsgCommandChat

      public MsgCommandChat(List<PlayerLobby> receivers, String text)
      Creates the message by setting the two attributes to the parameters
      Parameters:
      receivers - of the message
      text - of the message
  • Method Details

    • getText

      public String getText()
      Returns:
      the text of the message
    • getReceivers

      public List<PlayerLobby> getReceivers()
      Returns:
      the receivers of the message