Enum Class ActionType

java.lang.Object
java.lang.Enum<ActionType>
games.stendhal.client.entity.ActionType
All Implemented Interfaces:
Serializable, Comparable<ActionType>, Constable

public enum ActionType extends Enum<ActionType>
translates the visual representation into server side commands.
Author:
astridemma
  • Enum Constant Details

    • LOOK

      public static final ActionType LOOK
    • READ

      public static final ActionType READ
    • LOOK_CLOSELY

      public static final ActionType LOOK_CLOSELY
    • INSPECT

      public static final ActionType INSPECT
    • ATTACK

      public static final ActionType ATTACK
    • STOP_ATTACK

      public static final ActionType STOP_ATTACK
    • PUSH

      public static final ActionType PUSH
    • CLOSE

      public static final ActionType CLOSE
    • OPEN

      public static final ActionType OPEN
    • OWN

      public static final ActionType OWN
    • USE

      public static final ActionType USE
    • HARVEST

      public static final ActionType HARVEST
    • PICK

      public static final ActionType PICK
    • PROSPECT

      public static final ActionType PROSPECT
    • FISH

      public static final ActionType FISH
    • WISH

      public static final ActionType WISH
    • LEAVE_SHEEP

      public static final ActionType LEAVE_SHEEP
    • LEAVE_PET

      public static final ActionType LEAVE_PET
    • ADD_BUDDY

      public static final ActionType ADD_BUDDY
    • IGNORE

      public static final ActionType IGNORE
    • UNIGNORE

      public static final ActionType UNIGNORE
    • TRADE

      public static final ActionType TRADE
    • ADMIN_INSPECT

      public static final ActionType ADMIN_INSPECT
    • ADMIN_DESTROY

      public static final ActionType ADMIN_DESTROY
    • ADMIN_ALTER

      public static final ActionType ADMIN_ALTER
    • SET_OUTFIT

      public static final ActionType SET_OUTFIT
    • WHERE

      public static final ActionType WHERE
    • ADMIN_VIEW_NPC_TRANSITIONS

      public static final ActionType ADMIN_VIEW_NPC_TRANSITIONS
    • KNOCK

      public static final ActionType KNOCK
    • INVITE

      public static final ActionType INVITE
    • WALK_START

      public static final ActionType WALK_START
    • WALK_STOP

      public static final ActionType WALK_STOP
    • CHALLENGE

      public static final ActionType CHALLENGE
    • ACCEPT_CHALLENGE

      public static final ActionType ACCEPT_CHALLENGE
  • Method Details

    • values

      public static ActionType[] 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

      public static ActionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getbyRep

      public static ActionType getbyRep(String representation)
      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

      public String toString()
      Overrides:
      toString in class Enum<ActionType>
      Returns:
      the command code for usage on server side
    • getRepresentation

      public String getRepresentation()
      Returns:
      the String the user should see on the menu
    • send

      public void send(RPAction rpaction)
      sends the requested action to the server.
      Parameters:
      rpaction - action to be sent
    • fillTargetInfo

      public RPAction fillTargetInfo(IEntity entity)
      Create an RPAction with target information pointing to an entity.
      Parameters:
      entity - target entity
      Returns:
      action with entity as the target
    • getActionCode

      public String getActionCode()
      gets the action code
      Returns:
      actioncode