Package games.stendhal.server.actions
Class UseAction
java.lang.Object
games.stendhal.server.actions.UseAction
- All Implemented Interfaces:
ActionListener
Uses an item or an other entity that implements Useable
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UseAction
public UseAction()
-
-
Method Details
-
register
public static void register() -
onAction
Description copied from interface:ActionListener
processes the requested action.- Specified by:
onAction
in interfaceActionListener
- Parameters:
player
- the caller of the actionaction
- the action to be performed
-
isItemBoundToOtherPlayer
Make sure nobody uses items bound to someone else.- Parameters:
player
-object
-- Returns:
- true if item is bound false otherwise
-