Class GetHealSpeedEvent


  • public final class GetHealSpeedEvent
    extends ModifiableEvent<java.lang.Double>
    Determines the Healing speed of the Survivor. Contains the Healer Survivor, the Survivor being healed, and whether it is a Self-Heal or not. Value can't be more than twice its default value. Default value:
    - 0.5 if the healed Survivor is not Mangled and it is not self heal
    - 0,4 if the healed Survivor is Mangled and it s not self heal
    - 0,25 if the healed Survivor is not Mangled and it is self heal (in INJURED and ON_GROUND health states) - 0,2 if the healed Survivor is Mangled and it is self heal (in INJURED and ON_GROUND health states)
    • Constructor Detail

      • GetHealSpeedEvent

        public GetHealSpeedEvent​(Survivor healer,
                                 Survivor healed)
    • Method Detail

      • isSelfHeal

        public boolean isSelfHeal()
        Checks if the Survivor is performing a Self-Heal.
        Returns:
        True if the Survivor is healing themselves.
      • getHealed

        public Survivor getHealed()
        Gets the Survivor who is being healed.
        Returns:
        The Survivor who is being healed.
      • getValue

        public java.lang.Double getValue()
        Description copied from class: ModifiableEvent
        Returns the current value.
        Overrides:
        getValue in class ModifiableEvent<java.lang.Double>
        Returns:
        The value of the Event