Class UseAction

java.lang.Object
games.stendhal.server.actions.UseAction
All Implemented Interfaces:
ActionListener

public class UseAction extends Object implements ActionListener
Uses an item or an other entity that implements Useable
  • Constructor Details

    • UseAction

      public UseAction()
  • Method Details

    • register

      public static void register()
    • onAction

      public void onAction(Player player, RPAction action)
      Description copied from interface: ActionListener
      processes the requested action.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - the caller of the action
      action - the action to be performed
    • isItemBoundToOtherPlayer

      protected boolean isItemBoundToOtherPlayer(Player player, RPObject object)
      Make sure nobody uses items bound to someone else.
      Parameters:
      player -
      object -
      Returns:
      true if item is bound false otherwise