Class AttackEvent

All Implemented Interfaces:
Cloneable, Iterable<String>, Serializable

public class AttackEvent extends RPEvent
An RPEntity attacks another
  • Constructor Details

    • AttackEvent

      public AttackEvent(boolean canHit, int damage, Nature type, String weapon, boolean ranged)
      Construct a new AttackEvent
      Parameters:
      canHit - false for missed hits, true for wounding or blocked hits
      damage - damage done
      type - damage type of the attack
      weapon - the used weapon. Can be null
      ranged - true if the attack is ranged, otherwise false
  • Method Details

    • generateRPClass

      public static void generateRPClass()
      Creates the rpclass.