com.realtime.crossfire.jxclient.server.crossfire
Class MessageTypes

java.lang.Object
  extended by com.realtime.crossfire.jxclient.server.crossfire.MessageTypes

public class MessageTypes
extends java.lang.Object

Encapsulates the message type numbers for drawextinfo messages.


Field Summary
static int MSG_TYPE_ADMIN
          drawextinfo message type: general server message.
static int MSG_TYPE_APPLY
          drawextinfo message type: an object was applied.
static int MSG_TYPE_ATTACK
          drawextinfo message type: attack related message.
static int MSG_TYPE_ATTRIBUTE
          drawextinfo message type: attribute (stats, resistances, etc.) change message.
static int MSG_TYPE_BOOK
          drawextinfo message type: character did read a book.
static int MSG_TYPE_BOOK_CLASP_1
           
static int MSG_TYPE_BOOK_CLASP_2
           
static int MSG_TYPE_BOOK_ELEGANT_1
           
static int MSG_TYPE_BOOK_ELEGANT_2
           
static int MSG_TYPE_BOOK_QUARTO_1
           
static int MSG_TYPE_BOOK_QUARTO_2
           
static int MSG_TYPE_BOOK_SPELL_EVOKER
           
static int MSG_TYPE_BOOK_SPELL_PRAYER
           
static int MSG_TYPE_BOOK_SPELL_PYRO
           
static int MSG_TYPE_BOOK_SPELL_SORCERER
           
static int MSG_TYPE_BOOK_SPELL_SUMMONER
           
static int MSG_TYPE_CARD
          drawextinfo message type: character did read a card.
static int MSG_TYPE_COMMAND
          drawextinfo message type: response to command processing.
static int MSG_TYPE_COMMUNICATION
          drawextinfo message type: communication between players.
static int MSG_TYPE_COMMUNICATION_CHAT
           
static int MSG_TYPE_COMMUNICATION_EMOTE
           
static int MSG_TYPE_COMMUNICATION_ME
           
static int MSG_TYPE_COMMUNICATION_PARTY
           
static int MSG_TYPE_COMMUNICATION_RANDOM
           
static int MSG_TYPE_COMMUNICATION_SAY
           
static int MSG_TYPE_COMMUNICATION_SHOUT
           
static int MSG_TYPE_COMMUNICATION_TELL
           
static int MSG_TYPE_DIALOG
          drawextinfo message type: a NPC/magic mouth/altar/etc.
static int MSG_TYPE_ITEM
          drawextinfo message type: item related information.
static int MSG_TYPE_MISC
          drawextinfo message type: message that does not fit in any other category.
static int MSG_TYPE_MONUMENT
          drawextinfo message type: character did read a monument.
static int MSG_TYPE_MOTD
          drawextinfo message type: motd text.
static int MSG_TYPE_PAPER
          drawextinfo message type: character did read a paper.
static int MSG_TYPE_QUERY
          Internally used drawextinfo message type: a query message has been received.
static int MSG_TYPE_SHOP
          drawextinfo message type: shop related message.
static int MSG_TYPE_SIGN
          drawextinfo message type: character did read a sign.
static int MSG_TYPE_SKILL
          drawextinfo message type: message related to using skills.
static int MSG_TYPE_SPELL
          drawextinfo message type: spell related information.
static int MSG_TYPE_VICTIM
          drawextinfo message type: something bad is happening to the player.
 
Constructor Summary
private MessageTypes()
          Private constructor to prevent instantiation.
 
Method Summary
static int[] getAllTypes()
          Return all defined message types.
static int parseMessageType(java.lang.String str)
          Parse a string into a message type.
static java.lang.String toString(int type)
          Returns a string representation of a message type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_TYPE_ADMIN

public static final int MSG_TYPE_ADMIN
drawextinfo message type: general server message.

See Also:
Constant Field Values

MSG_TYPE_APPLY

public static final int MSG_TYPE_APPLY
drawextinfo message type: an object was applied.

See Also:
Constant Field Values

MSG_TYPE_ATTACK

public static final int MSG_TYPE_ATTACK
drawextinfo message type: attack related message.

See Also:
Constant Field Values

MSG_TYPE_ATTRIBUTE

public static final int MSG_TYPE_ATTRIBUTE
drawextinfo message type: attribute (stats, resistances, etc.) change message.

See Also:
Constant Field Values

MSG_TYPE_BOOK

public static final int MSG_TYPE_BOOK
drawextinfo message type: character did read a book.

See Also:
Constant Field Values

MSG_TYPE_BOOK_CLASP_1

public static final int MSG_TYPE_BOOK_CLASP_1
See Also:
Constant Field Values

MSG_TYPE_BOOK_CLASP_2

public static final int MSG_TYPE_BOOK_CLASP_2
See Also:
Constant Field Values

MSG_TYPE_BOOK_ELEGANT_1

public static final int MSG_TYPE_BOOK_ELEGANT_1
See Also:
Constant Field Values

MSG_TYPE_BOOK_ELEGANT_2

public static final int MSG_TYPE_BOOK_ELEGANT_2
See Also:
Constant Field Values

MSG_TYPE_BOOK_QUARTO_1

public static final int MSG_TYPE_BOOK_QUARTO_1
See Also:
Constant Field Values

MSG_TYPE_BOOK_QUARTO_2

public static final int MSG_TYPE_BOOK_QUARTO_2
See Also:
Constant Field Values

MSG_TYPE_BOOK_SPELL_EVOKER

public static final int MSG_TYPE_BOOK_SPELL_EVOKER
See Also:
Constant Field Values

MSG_TYPE_BOOK_SPELL_PRAYER

public static final int MSG_TYPE_BOOK_SPELL_PRAYER
See Also:
Constant Field Values

MSG_TYPE_BOOK_SPELL_PYRO

public static final int MSG_TYPE_BOOK_SPELL_PYRO
See Also:
Constant Field Values

MSG_TYPE_BOOK_SPELL_SORCERER

public static final int MSG_TYPE_BOOK_SPELL_SORCERER
See Also:
Constant Field Values

MSG_TYPE_BOOK_SPELL_SUMMONER

public static final int MSG_TYPE_BOOK_SPELL_SUMMONER
See Also:
Constant Field Values

MSG_TYPE_CARD

public static final int MSG_TYPE_CARD
drawextinfo message type: character did read a card.

See Also:
Constant Field Values

MSG_TYPE_COMMAND

public static final int MSG_TYPE_COMMAND
drawextinfo message type: response to command processing.

See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION

public static final int MSG_TYPE_COMMUNICATION
drawextinfo message type: communication between players.

See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_CHAT

public static final int MSG_TYPE_COMMUNICATION_CHAT
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_EMOTE

public static final int MSG_TYPE_COMMUNICATION_EMOTE
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_ME

public static final int MSG_TYPE_COMMUNICATION_ME
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_PARTY

public static final int MSG_TYPE_COMMUNICATION_PARTY
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_RANDOM

public static final int MSG_TYPE_COMMUNICATION_RANDOM
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_SAY

public static final int MSG_TYPE_COMMUNICATION_SAY
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_SHOUT

public static final int MSG_TYPE_COMMUNICATION_SHOUT
See Also:
Constant Field Values

MSG_TYPE_COMMUNICATION_TELL

public static final int MSG_TYPE_COMMUNICATION_TELL
See Also:
Constant Field Values

MSG_TYPE_DIALOG

public static final int MSG_TYPE_DIALOG
drawextinfo message type: a NPC/magic mouth/altar/etc. talks.

See Also:
Constant Field Values

MSG_TYPE_ITEM

public static final int MSG_TYPE_ITEM
drawextinfo message type: item related information.

See Also:
Constant Field Values

MSG_TYPE_MISC

public static final int MSG_TYPE_MISC
drawextinfo message type: message that does not fit in any other category.

See Also:
Constant Field Values

MSG_TYPE_MONUMENT

public static final int MSG_TYPE_MONUMENT
drawextinfo message type: character did read a monument.

See Also:
Constant Field Values

MSG_TYPE_MOTD

public static final int MSG_TYPE_MOTD
drawextinfo message type: motd text.

See Also:
Constant Field Values

MSG_TYPE_PAPER

public static final int MSG_TYPE_PAPER
drawextinfo message type: character did read a paper.

See Also:
Constant Field Values

MSG_TYPE_QUERY

public static final int MSG_TYPE_QUERY
Internally used drawextinfo message type: a query message has been received.

See Also:
Constant Field Values

MSG_TYPE_SHOP

public static final int MSG_TYPE_SHOP
drawextinfo message type: shop related message.

See Also:
Constant Field Values

MSG_TYPE_SIGN

public static final int MSG_TYPE_SIGN
drawextinfo message type: character did read a sign.

See Also:
Constant Field Values

MSG_TYPE_SKILL

public static final int MSG_TYPE_SKILL
drawextinfo message type: message related to using skills.

See Also:
Constant Field Values

MSG_TYPE_SPELL

public static final int MSG_TYPE_SPELL
drawextinfo message type: spell related information.

See Also:
Constant Field Values

MSG_TYPE_VICTIM

public static final int MSG_TYPE_VICTIM
drawextinfo message type: something bad is happening to the player.

See Also:
Constant Field Values
Constructor Detail

MessageTypes

private MessageTypes()
Private constructor to prevent instantiation.

Method Detail

getAllTypes

@NotNull
public static int[] getAllTypes()
Return all defined message types.

Returns:
all defined message types

parseMessageType

public static int parseMessageType(@NotNull
                                   java.lang.String str)
                            throws UnknownCommandException
Parse a string into a message type.

Parameters:
str - The string to parse.
Returns:
The message type.
Throws:
UnknownCommandException - If the string is unknown.

toString

@NotNull
public static java.lang.String toString(int type)
Returns a string representation of a message type.

Parameters:
type - the message type
Returns:
the string representation