Class Blood

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

public class Blood extends PassiveEntity
Represents a blood puddle that is left on the ground after an entity was injured or killed.
  • Field Details

    • DEGRADATION_TIMEOUT

      public static final int DEGRADATION_TIMEOUT
      Blood will disappear after so many seconds.
      See Also:
      Constant Field Values
  • Constructor Details

    • Blood

      public Blood()
      Create a blood entity.
    • Blood

      public Blood(String clazz)
      Create a blood entity.
      Parameters:
      type - of blood
    • Blood

      public Blood(String clazz, int amount)
      Create a blood entity.
      Parameters:
      clazz - The class of blood.
      amount - The amount of blood.
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • onRemoved

      public void onRemoved(StendhalRPZone zone)
      Description copied from class: Entity
      Called when this object is being removed from a zone.
      Overrides:
      onRemoved in class Entity
      Parameters:
      zone - The zone this will be removed from.
    • describe

      public String describe()
      Get the entity description.
      Overrides:
      describe in class Entity
      Returns:
      The description text.
    • onTurnReached

      public void onTurnReached(int currentTurn)
      This method is called when the turn number is reached.
      Parameters:
      currentTurn - The current turn number.