Java Universal Role Playing Engine Version 0.3.9

jurpe.system.commands
Enum PlayerCommand

java.lang.Object
  extended by java.lang.Enum<PlayerCommand>
      extended by jurpe.system.commands.PlayerCommand
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PlayerCommand>

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

A PlayerCommand enum is a command issued by a human player


Enum Constant Summary
AIM
           
ATTACK_MONSTER
           
CLOSE_DOOR
           
DIG
           
ENTER
           
ENTER_DUNGEON
           
ENTER_INN
           
ENTER_MAGESGUILD
           
ENTER_SHOP
           
ENTER_TRAINER
           
MOVE
           
OPEN_DOOR
           
PASS
           
PICK_UP
           
QUITGAME
           
SAYTIME
           
SHOOT
           
STAIRS_DOWN
           
STAIRS_UP
           
UNKNOWN
           
USEFIRSTAID
           
 
Method Summary
static PlayerCommand valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PlayerCommand[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AIM

public static final PlayerCommand AIM

ATTACK_MONSTER

public static final PlayerCommand ATTACK_MONSTER

CLOSE_DOOR

public static final PlayerCommand CLOSE_DOOR

DIG

public static final PlayerCommand DIG

ENTER

public static final PlayerCommand ENTER

ENTER_DUNGEON

public static final PlayerCommand ENTER_DUNGEON

ENTER_INN

public static final PlayerCommand ENTER_INN

ENTER_SHOP

public static final PlayerCommand ENTER_SHOP

ENTER_TRAINER

public static final PlayerCommand ENTER_TRAINER

ENTER_MAGESGUILD

public static final PlayerCommand ENTER_MAGESGUILD

MOVE

public static final PlayerCommand MOVE

OPEN_DOOR

public static final PlayerCommand OPEN_DOOR

PASS

public static final PlayerCommand PASS

PICK_UP

public static final PlayerCommand PICK_UP

QUITGAME

public static final PlayerCommand QUITGAME

SAYTIME

public static final PlayerCommand SAYTIME

SHOOT

public static final PlayerCommand SHOOT

STAIRS_DOWN

public static final PlayerCommand STAIRS_DOWN

STAIRS_UP

public static final PlayerCommand STAIRS_UP

UNKNOWN

public static final PlayerCommand UNKNOWN

USEFIRSTAID

public static final PlayerCommand USEFIRSTAID
Method Detail

values

public static PlayerCommand[] 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 (PlayerCommand c : PlayerCommand.values())
    System.out.println(c);

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

valueOf

public static PlayerCommand 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

Java Universal Role Playing Engine Version 0.3.9

Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.