Class TriggerEvent

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

public class TriggerEvent
extends java.util.EventObject
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Method Summary

    Modifier and TypeMethodDescription
    IEntitygetEntity()
    Get the entity that activated the Trigger.
    java.lang.StringgetMessage()
    Get this Trigger's message.
    java.util.List<java.lang.Integer>getTargets()
    Get the entities that are affected by the Trigger.
    TriggergetTrigger()
    Get the Trigger affected by this event.

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getEntity

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

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

      public java.util.List<java.lang.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.