Class StoppableEvent

java.lang.Object
com.prineside.tdi2.events.StoppableEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
AddBuffToEnemy, EnemyDie, EnemyReachTarget, EnemySpawn, EnemyTakeDamage, GameStateTick, GiveDamageToEnemy, MinerMineItem, MinerResourceChange, PostRender, PreRender, RemoveBuffFromEnemy, Render, Render, ScreenResize, StartRender, SystemsDispose, SystemsPostSetup, SystemsSetup, SystemsStateRestore, TowerExperienceChange, VisibleDisplayFrameChange, WaveStart

public abstract class StoppableEvent extends Object implements Event
Can be stopped, can't be canceled
  • Constructor Details

    • StoppableEvent

      public StoppableEvent()
  • Method Details

    • isStopped

      public final boolean isStopped()
      Specified by:
      isStopped in interface Event
      Returns:
      true if event is stopped by some of the listeners
    • stop

      public final void stop()
      Description copied from interface: Event
      Stop event propagation. When any listener stops the event, all of the remaining listeners down the chain will never be notified about it.
      Specified by:
      stop in interface Event