Package games.stendhal.client.entity
Enum Class ActionType
- All Implemented Interfaces:
Serializable
,Comparable<ActionType>
,Constable
translates the visual representation into server side commands.
- Author:
- astridemma
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfillTargetInfo(IEntity entity)
Create an RPAction with target information pointing to an entity.gets the action codestatic ActionType
finds the ActionType that belongs to a visual String representation.void
sends the requested action to the server.toString()
static ActionType
Returns the enum constant of this class with the specified name.static ActionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOOK
-
READ
-
LOOK_CLOSELY
-
INSPECT
-
ATTACK
-
STOP_ATTACK
-
PUSH
-
CLOSE
-
OPEN
-
OWN
-
USE
-
HARVEST
-
PICK
-
PROSPECT
-
FISH
-
WISH
-
LEAVE_SHEEP
-
LEAVE_PET
-
ADD_BUDDY
-
IGNORE
-
UNIGNORE
-
TRADE
-
ADMIN_INSPECT
-
ADMIN_DESTROY
-
ADMIN_ALTER
-
SET_OUTFIT
-
WHERE
-
ADMIN_VIEW_NPC_TRANSITIONS
-
KNOCK
-
INVITE
-
WALK_START
-
WALK_STOP
-
CHALLENGE
-
ACCEPT_CHALLENGE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getbyRep
finds the ActionType that belongs to a visual String representation.- Parameters:
representation
- the menu String- Returns:
- the Action Element or null if not found
-
toString
- Overrides:
toString
in classEnum<ActionType>
- Returns:
- the command code for usage on server side
-
getRepresentation
- Returns:
- the String the user should see on the menu
-
send
sends the requested action to the server.- Parameters:
rpaction
- action to be sent
-
fillTargetInfo
Create an RPAction with target information pointing to an entity.- Parameters:
entity
- target entity- Returns:
- action with entity as the target
-
getActionCode
gets the action code- Returns:
- actioncode
-