monrovia.protocol
Class Command

java.lang.Object
  |
  +--monrovia.protocol.Command
Direct Known Subclasses:
MenuCommand

public class Command
extends java.lang.Object

The Command class is used for sending Commands to the client


Field Summary
static byte COMMAND_1INT_STAT
           
static byte COMMAND_2INT_STAT
           
static byte COMMAND_NO_ARG
           
static byte COMMAND_REMOVE
           
static byte COMMAND_STRING_ARG
           
 int mId
          mId is the identifier of this command
 java.lang.String mName
          mName is the string name to be displayed
 byte mType
          mType is the type as in 0,1,2 ints or string
 
Constructor Summary
Command(int pId, java.lang.String pName, byte pType)
          Constructor for a command
 
Method Summary
 int getCommandID()
          Returns the ID of the command.
 java.lang.String getCommandName()
          Returns the command name.
 byte getCommandType()
          Returns the command type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_STRING_ARG

public static final byte COMMAND_STRING_ARG

COMMAND_NO_ARG

public static final byte COMMAND_NO_ARG

COMMAND_1INT_STAT

public static final byte COMMAND_1INT_STAT

COMMAND_2INT_STAT

public static final byte COMMAND_2INT_STAT

COMMAND_REMOVE

public static final byte COMMAND_REMOVE

mId

public int mId
mId is the identifier of this command

mName

public java.lang.String mName
mName is the string name to be displayed

mType

public byte mType
mType is the type as in 0,1,2 ints or string
Constructor Detail

Command

public Command(int pId,
               java.lang.String pName,
               byte pType)
Constructor for a command
Parameters:
pId - the identifier of this command
pName - the name of this command
pType - the type of the command
Method Detail

getCommandID

public int getCommandID()
Returns the ID of the command.
Returns:
command ID as integer number

getCommandName

public java.lang.String getCommandName()
Returns the command name.
Returns:
command name as string

getCommandType

public byte getCommandType()
Returns the command type.
Returns:
command type as byte