Class GameStateChangedTrigger

All Implemented Interfaces:
Serializable, Cloneable, HasDesc<EventTriggerDesc>

public class GameStateChangedTrigger extends EventTrigger
Fires for all events.

Use sparingly.

Values at the time of firing
Field Value
EntityReference.EVENT_SOURCE The source of the event, or null if there is none
EntityReference.EVENT_TARGET The target of the event, or null if there is none
EventTriggerArg.TARGET_PLAYER The target player of the event, typically the owner of the target, or -1 if there was no target or target player (atypical)
EventTriggerArg.SOURCE_PLAYER The source player of the event, typically the owner of the source, or -1 if there was no source or source player (pretty typical)
EventValueProvider The value of the event, or 0 if there is none.
See Also:
  • Constructor Details

    • GameStateChangedTrigger

      public GameStateChangedTrigger(EventTriggerDesc desc)
  • Method Details

    • innerQueues

      protected boolean innerQueues(GameEvent event, Enchantment enchantment, Entity host)
      Description copied from class: EventTrigger
      When an event this trigger is EventTrigger.interestedIn() occurs, this test indicates whether or not the trigger should enter the queue of effects that should be evaluated. This is distinct from whether or not
      Specified by:
      innerQueues in class EventTrigger
      Returns:
    • interestedIn

      public com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType interestedIn()
      Specified by:
      interestedIn in class EventTrigger