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
Method Summary
Modifier and Type Method Description IEntity
getEntity()
Get the entity that activated the Trigger.java.lang.String
getMessage()
Get this Trigger's message.java.util.List<java.lang.Integer>
getTargets()
Get the entities that are affected by the Trigger.Trigger
getTrigger()
Get the Trigger affected by this event.
Method Details
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
Get the Trigger affected by this event.- Returns:
- The trigger.