Enum Class MessageType

Object
Enum<MessageType>
MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>, Constable

public enum MessageType extends Enum<MessageType>
  • Enum Constant Details

    • INFO

      public static final MessageType INFO
      State changes of the game, for example if somebody logs on.
    • PONG

      public static final MessageType PONG
      User generated ping response. For fun.
    • INTERNALPING

      public static final MessageType INTERNALPING
      The internal ping-pong for checking of the connection. We're expecting a INTERNALPONG, if we sent this message. This enumtype will never be generated/used by the server, but will only be sent by the client.
    • INTERNALPONG

      public static final MessageType INTERNALPONG
      The internal ping-pong for checking of the connection. This enumtype will never be sent by the client, but only by the server as an answer to a INTERNALPING.
    • CHAT

      public static final MessageType CHAT
      General communication, the default.
    • CHATBUBBLE

      public static final MessageType CHATBUBBLE
      The idea here is that this indicates that this text should be displayed above the characters head that says it in a speech bubble in the graphical client.
  • Method Details

    • values

      public static MessageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null