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
Constructor Summary |
Command(int pId,
java.lang.String pName,
byte pType)
Constructor for a command |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Command
public Command(int pId,
java.lang.String pName,
byte pType)
- Constructor for a command
- Parameters:
pId
- the identifier of this commandpName
- the name of this commandpType
- the type of the command
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