cz.cuni.pogamut.MessageObjects
Enum MessageType

java.lang.Object
  extended by java.lang.Enum<MessageType>
      extended by cz.cuni.pogamut.MessageObjects.MessageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessageType>

public enum MessageType
extends java.lang.Enum<MessageType>

Enum of all message types available


Enum Constant Summary
ADD_AMMO
           
ADD_ARMOR
           
ADD_EXTRA
           
ADD_HEALTH
           
ADD_ITEM
           
ADD_SPECIAL
           
ADD_WEAPON
           
ADRENALINE_GAINED
           
ALIVE
           
AMMO
           
ARMOR
           
AUTO_TRACE_RAY
           
BEGIN
           
BOT_DAMAGED
           
BOT_KILLED
           
BUMPED
           
CONFIG_CHANGE
           
DELETE_FROM_BATCH
           
DISCONNECTED
           
DOM_POINT
           
DUMMY_MESSAGE
           
END
           
EXTRA
           
FALL
           
FAST_TRACE
           
FLAG_INFO
           
GAME_INFO
           
GAME_PAUSED
           
GAME_RESUMED
           
GAME_STATUS
           
GLOBAL_CHAT
           
HEALTH
           
HEAR_NOISE
           
HEAR_PICKUP
           
HELLO_BOT
           
HELLO_CONTROL_SERVER
           
HELLO_MAP
           
CHANGED_WEAPON
           
INCOMMING_PROJECTILE
           
ITEM
           
ITEM_LIST
           
MAP_FINISHED
           
MAP_CHANGED
           
MAP_LIST_END
           
MAP_LIST_ITEM
           
MAP_LIST_START
           
MOVER
           
NAV_LIST
           
NAV_POINT
           
NEIGH_NAV
           
PATH
           
PLAYER
           
PLAYER_DAMAGED
           
PLAYER_JOIN
           
PLAYER_KILLED
           
PLAYER_LEFT
           
PLR_LIST_END
           
PLR_LIST_START
           
PONG
           
RAY_LIST
           
REACHABLE
           
SEE_PLAYER
           
SELF
           
SPAWN
           
SPECIAL
           
TEAM_CHAT
           
THROWN
           
TRACE
           
WALL_COLLISION
           
WEAPON
           
ZONE_CHANGED_BOT
           
ZONE_CHANGED_FOOT
           
ZONE_CHANGED_HEAD
           
 
Field Summary
private  MessageGroup group
           
private  java.lang.String shortcut
           
 
Method Summary
 MessageGroup getGroup()
          get group of the message
 java.lang.String getShortcut()
          get shorcut of message
static MessageType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessageType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEGIN

public static final MessageType BEGIN

ALIVE

public static final MessageType ALIVE

END

public static final MessageType END

SELF

public static final MessageType SELF

PLAYER

public static final MessageType PLAYER

MOVER

public static final MessageType MOVER

ITEM

public static final MessageType ITEM

ARMOR

public static final MessageType ARMOR

HEALTH

public static final MessageType HEALTH

WEAPON

public static final MessageType WEAPON

AMMO

public static final MessageType AMMO

SPECIAL

public static final MessageType SPECIAL

NAV_POINT

public static final MessageType NAV_POINT

GAME_INFO

public static final MessageType GAME_INFO

GAME_STATUS

public static final MessageType GAME_STATUS

PATH

public static final MessageType PATH

INCOMMING_PROJECTILE

public static final MessageType INCOMMING_PROJECTILE

ADD_ITEM

public static final MessageType ADD_ITEM

ADD_AMMO

public static final MessageType ADD_AMMO

ADD_ARMOR

public static final MessageType ADD_ARMOR

ADD_HEALTH

public static final MessageType ADD_HEALTH

ADD_WEAPON

public static final MessageType ADD_WEAPON

ADD_SPECIAL

public static final MessageType ADD_SPECIAL

ADRENALINE_GAINED

public static final MessageType ADRENALINE_GAINED

GLOBAL_CHAT

public static final MessageType GLOBAL_CHAT

TEAM_CHAT

public static final MessageType TEAM_CHAT

ZONE_CHANGED_FOOT

public static final MessageType ZONE_CHANGED_FOOT

ZONE_CHANGED_HEAD

public static final MessageType ZONE_CHANGED_HEAD

ZONE_CHANGED_BOT

public static final MessageType ZONE_CHANGED_BOT

CHANGED_WEAPON

public static final MessageType CHANGED_WEAPON

WALL_COLLISION

public static final MessageType WALL_COLLISION

BUMPED

public static final MessageType BUMPED

HEAR_PICKUP

public static final MessageType HEAR_PICKUP

HEAR_NOISE

public static final MessageType HEAR_NOISE

SEE_PLAYER

public static final MessageType SEE_PLAYER

PLAYER_KILLED

public static final MessageType PLAYER_KILLED

BOT_KILLED

public static final MessageType BOT_KILLED

BOT_DAMAGED

public static final MessageType BOT_DAMAGED

PLAYER_DAMAGED

public static final MessageType PLAYER_DAMAGED

REACHABLE

public static final MessageType REACHABLE

DISCONNECTED

public static final MessageType DISCONNECTED

FALL

public static final MessageType FALL

HELLO_BOT

public static final MessageType HELLO_BOT

HELLO_CONTROL_SERVER

public static final MessageType HELLO_CONTROL_SERVER

HELLO_MAP

public static final MessageType HELLO_MAP

NAV_LIST

public static final MessageType NAV_LIST

NEIGH_NAV

public static final MessageType NEIGH_NAV

ITEM_LIST

public static final MessageType ITEM_LIST

SPAWN

public static final MessageType SPAWN

TRACE

public static final MessageType TRACE

FAST_TRACE

public static final MessageType FAST_TRACE

DELETE_FROM_BATCH

public static final MessageType DELETE_FROM_BATCH

MAP_FINISHED

public static final MessageType MAP_FINISHED

RAY_LIST

public static final MessageType RAY_LIST

AUTO_TRACE_RAY

public static final MessageType AUTO_TRACE_RAY

DOM_POINT

public static final MessageType DOM_POINT

FLAG_INFO

public static final MessageType FLAG_INFO

MAP_LIST_START

public static final MessageType MAP_LIST_START

MAP_LIST_ITEM

public static final MessageType MAP_LIST_ITEM

MAP_LIST_END

public static final MessageType MAP_LIST_END

PLR_LIST_START

public static final MessageType PLR_LIST_START

PLR_LIST_END

public static final MessageType PLR_LIST_END

MAP_CHANGED

public static final MessageType MAP_CHANGED

ADD_EXTRA

public static final MessageType ADD_EXTRA

EXTRA

public static final MessageType EXTRA

PLAYER_LEFT

public static final MessageType PLAYER_LEFT

PLAYER_JOIN

public static final MessageType PLAYER_JOIN

GAME_PAUSED

public static final MessageType GAME_PAUSED

GAME_RESUMED

public static final MessageType GAME_RESUMED

THROWN

public static final MessageType THROWN

DUMMY_MESSAGE

public static final MessageType DUMMY_MESSAGE

PONG

public static final MessageType PONG

CONFIG_CHANGE

public static final MessageType CONFIG_CHANGE
Field Detail

shortcut

private final java.lang.String shortcut

group

private final MessageGroup group
Method Detail

values

public static MessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MessageType c : MessageType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MessageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getShortcut

public java.lang.String getShortcut()
get shorcut of message


getGroup

public MessageGroup getGroup()
get group of the message