Class AttackAction
java.lang.Object
games.stendhal.server.actions.attack.AttackAction
- All Implemented Interfaces:
ActionListener
attacks a creature or player
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AttackAction
public AttackAction()
-
-
Method Details
-
register
public static void register()registers the AttackAction with its trigger word "attack". -
onAction
performs an attack action, if the TARGET is an RPEntity.- Specified by:
onAction
in interfaceActionListener
- Parameters:
player
- the attackeraction
- the attack Action containing the TARGET's name
-