22 package com.realtime.crossfire.jxclient.protocol;
24 import org.jetbrains.annotations.NotNull;
215 if (str.equals(
"BOOK")) {
218 if (str.equals(
"CARD")) {
221 if (str.equals(
"PAPER")) {
224 if (str.equals(
"SIGN")) {
227 if (str.equals(
"MONUMENT")) {
230 if (str.equals(
"DIALOG")) {
233 if (str.equals(
"MOTD")) {
236 if (str.equals(
"ADMIN")) {
239 if (str.equals(
"SHOP")) {
242 if (str.equals(
"COMMAND")) {
245 if (str.equals(
"ATTRIBUTE")) {
248 if (str.equals(
"SKILL")) {
251 if (str.equals(
"APPLY")) {
254 if (str.equals(
"ATTACK")) {
257 if (str.equals(
"COMMUNICATION")) {
260 if (str.equals(
"SPELL")) {
263 if (str.equals(
"ITEM")) {
266 if (str.equals(
"MISC")) {
269 if (str.equals(
"VICTIM")) {
272 if (str.equals(
"QUERY")) {
329 return "COMMUNICATION";
344 return Integer.toString(type);
static int [] getAllTypes()
Returns all defined message types.
static final int MSG_TYPE_SKILL
drawextinfo message type: message related to using skills.
Encapsulates the message type numbers for drawextinfo messages.
static final int MSG_TYPE_CARD
drawextinfo message type: character did read a card.
static final int MSG_TYPE_MISC
drawextinfo message type: message that does not fit in any other category.
static final int MSG_TYPE_BOOK_ELEGANT_1
static final int MSG_TYPE_MONUMENT
drawextinfo message type: character did read a monument.
static final int MSG_TYPE_BOOK_QUARTO_1
static final int MSG_TYPE_PAPER
drawextinfo message type: character did read a paper.
static final int MSG_TYPE_BOOK_SPELL_PRAYER
static final int MSG_TYPE_BOOK_SPELL_SUMMONER
An exception that is thrown if an undefined message type occurs.
static final int MSG_TYPE_COMMAND
drawextinfo message type: response to command processing.
static final int MSG_TYPE_ADMIN
drawextinfo message type: general server message.
static final int MSG_TYPE_ATTACK
drawextinfo message type: attack related message.
static final int MSG_TYPE_COMMUNICATION_SAY
static final int MSG_TYPE_COMMUNICATION_PARTY
static final int MSG_TYPE_APPLY
drawextinfo message type: an object was applied.
static final int MSG_TYPE_COMMUNICATION_ME
static final int MSG_TYPE_BOOK_SPELL_PYRO
static final int MSG_TYPE_SHOP
drawextinfo message type: shop related message.
static final int MSG_TYPE_BOOK_CLASP_2
static final int MSG_TYPE_SIGN
drawextinfo message type: character did read a sign.
static final int MSG_TYPE_COMMUNICATION_SHOUT
static final int MSG_TYPE_ITEM
drawextinfo message type: item related information.
static final int MSG_TYPE_COMMUNICATION
drawextinfo message type: communication between players.
static final int MSG_TYPE_BOOK_ELEGANT_2
static final int MSG_TYPE_COMMUNICATION_RANDOM
static final int MSG_TYPE_MOTD
drawextinfo message type: motd text.
static final int MSG_TYPE_SPELL
drawextinfo message type: spell related information.
static final int MSG_TYPE_QUERY
Internally used drawextinfo message type: a query message has been received.
static final int MSG_TYPE_COMMUNICATION_TELL
static final int MSG_TYPE_BOOK_SPELL_SORCERER
static final int MSG_TYPE_COMMUNICATION_EMOTE
MessageTypes()
Private constructor to prevent instantiation.
static final int MSG_TYPE_BOOK_SPELL_EVOKER
static final int MSG_TYPE_DIALOG
drawextinfo message type: a NPC/magic mouth/altar/etc.
static final int MSG_TYPE_COMMUNICATION_CHAT
static final int MSG_TYPE_BOOK_CLASP_1
static final int MSG_TYPE_ATTRIBUTE
drawextinfo message type: attribute (stats, resistances, etc.) change message.
static final int MSG_TYPE_VICTIM
drawextinfo message type: something bad is happening to the player.
static final int MSG_TYPE_BOOK_QUARTO_2
static int parseMessageType(@NotNull final String str)
Parses a string into a message type.
static final int MSG_TYPE_BOOK
drawextinfo message type: character did read a book.
static String toString(final int type)
Returns a string representation of a message type.