Class HealthStateChangedEvent


  • public final class HealthStateChangedEvent
    extends PlayerEvent
    Called whenever a Survivor's Health State changes for whatever reason. Contains the Health State before and after the change.
    • Constructor Detail

      • HealthStateChangedEvent

        public HealthStateChangedEvent​(Survivor survivor,
                                       Health from,
                                       Health to)
    • Method Detail

      • getFrom

        public Health getFrom()
        Gets the Health State before the change occurred.
        Returns:
        The previous Health State.
      • getTo

        public Health getTo()
        Gets the Health State after the change occurred.
        Returns:
        The current Health State.