Class TriggerEvent

java.lang.Object
java.util.EventObject
de.gurkenlabs.litiengine.entities.TriggerEvent
All Implemented Interfaces:
Serializable

public class TriggerEvent extends EventObject
Represents an event triggered by a Trigger in the game.
See Also:
  • Method Details

    • getEntity

      public IEntity getEntity()
      Get the entity that activated the Trigger.
      Returns:
      The entity that activated the trigger.
    • getMessage

      public String getMessage()
      Get this Trigger's message.
      Returns:
      The trigger's message.
    • getTargets

      public List<Integer> getTargets()
      Get the entities that are affected by the Trigger.
      Returns:
      Target entities of the trigger.
    • getTrigger

      public Trigger getTrigger()
      Get the Trigger affected by this event.
      Returns:
      The trigger.