Class HealFinishedEvent


  • public final class HealFinishedEvent
    extends PlayerEvent
    Called when the Survivor gets healed to 100%. Contains the List of the healing Survivors that were healing the Survivor when the Heal Progress hit 100%, and the Health State prior the healing.
    • Constructor Detail

      • HealFinishedEvent

        public HealFinishedEvent​(Survivor survivor,
                                 java.util.HashSet<Survivor> healers,
                                 Health healedFrom)
    • Method Detail

      • isSelfHeal

        public boolean isSelfHeal()
        Checks if this heal was a Self-Heal.
        Returns:
        True if the Survivor healed themselves.
      • getHealers

        public java.util.ArrayList<Survivor> getHealers()
        A copy of the List of the Survivors who healed the Survivor.
        Returns:
        A copy of the List of the Healers.
      • getHealedFrom

        public Health getHealedFrom()
        The Health State the Survivor had before the Healing was finished.
        Returns:
        The previous Health State.