|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Technical.TechCommand>
com.planet_ink.coffee_mud.Items.interfaces.Technical.TechCommand
public static enum Technical.TechCommand
A TechCommand is an internal message that is only understood between electrical objects, typically ship components, but potentially between computer components of all sorts.
Enum Constant Summary | |
---|---|
ACCELERATED
|
|
ACCELERATION
|
|
AIRREFRESH
|
|
COMPONENTFAILURE
|
|
GRAVITYCHANGE
|
|
POWERSET
|
|
SENSE
|
|
SHIELDSET
|
|
THRUST
|
|
WEAPONFIRE
|
|
WEAPONTARGETSET
|
Method Summary | |
---|---|
java.lang.Object[] |
confirmAndTranslate(java.lang.String[] parts)
When a tech command of this enum type is received with its parameters, the parameters are parsed into a list and passed to this method to confirm their types, translate them to the appropriate types, and return the parameters as their original objects in an Object array. |
static Technical.TechCommand |
findCommand(java.lang.String[] parts)
Returns the techcommand object that matches the first word in this parsed command string list. |
java.lang.Class<?>[] |
getParms()
Returns the form of the parameters of this tech command |
java.lang.String |
makeCommand(java.lang.Object... parts)
Creates a new tech command of this enums type using the given parameters, and returns the message as a string, or "" if an error occurred due to bad parameters. |
static Technical.TechCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Technical.TechCommand[] |
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 |
---|
public static final Technical.TechCommand THRUST
public static final Technical.TechCommand ACCELERATED
public static final Technical.TechCommand ACCELERATION
public static final Technical.TechCommand COMPONENTFAILURE
public static final Technical.TechCommand SENSE
public static final Technical.TechCommand AIRREFRESH
public static final Technical.TechCommand POWERSET
public static final Technical.TechCommand WEAPONTARGETSET
public static final Technical.TechCommand WEAPONFIRE
public static final Technical.TechCommand SHIELDSET
public static final Technical.TechCommand GRAVITYCHANGE
Method Detail |
---|
public static Technical.TechCommand[] values()
for (Technical.TechCommand c : Technical.TechCommand.values()) System.out.println(c);
public static Technical.TechCommand valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<?>[] getParms()
public java.lang.String makeCommand(java.lang.Object... parts)
parts
- the parameters, which must be perfectly valid for this enum
public java.lang.Object[] confirmAndTranslate(java.lang.String[] parts)
parts
- the command parameters as a string list
public static Technical.TechCommand findCommand(java.lang.String[] parts)
parts
- the entire command string list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |