Class AttackAction

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

public class AttackAction extends Object implements ActionListener
attacks a creature or player
  • Constructor Details

    • AttackAction

      public AttackAction()
  • Method Details

    • register

      public static void register()
      registers the AttackAction with its trigger word "attack".
    • onAction

      public void onAction(Player player, RPAction action)
      performs an attack action, if the TARGET is an RPEntity.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - the attacker
      action - the attack Action containing the TARGET's name