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

public class Myling extends Creature
  • Constructor Details

  • Method Details

    • isAttackable

      public boolean isAttackable()
      Description copied from class: Creature
      Returns true if this RPEntity is attackable.
      Overrides:
      isAttackable in class Creature
      Returns:
      true if this RPEntity is attackable.
    • onRejectedAttackStart

      public void onRejectedAttackStart(RPEntity attacker)
      Description copied from class: RPEntity
      Action when entity cannot be attacked.
      Overrides:
      onRejectedAttackStart in class RPEntity
    • onDead

      public void onDead(Killer killer, boolean remove)
      Description copied from class: RPEntity
      This method is called when this entity has been killed (hp == 0).
      Overrides:
      onDead in class Creature
      Parameters:
      killer - The entity who caused the death, i.e. who did the last hit.
      remove - true iff this entity should be removed from the world. For almost everything remove is true, but not for the players, who are instead moved to afterlife ("reborn").