Class CountdownEventAction<T extends Event>

java.lang.Object
com.prineside.tdi2.scene2d.Action
com.prineside.tdi2.scene2d.actions.EventAction<T>
com.prineside.tdi2.scene2d.actions.CountdownEventAction<T>
All Implemented Interfaces:
Pool.Poolable

public class CountdownEventAction<T extends Event> extends EventAction<T>
An EventAction that is complete once it receives X number of events.
Author:
JavadocMD, Nathan Sweet
  • Constructor Details

    • CountdownEventAction

      public CountdownEventAction(Class<? extends T> eventClass, int count)
  • Method Details

    • handle

      public boolean handle(T event)
      Description copied from class: EventAction
      Called when the specific type of event occurs on the actor.
      Specified by:
      handle in class EventAction<T extends Event>
      Returns:
      true if the event should be considered handled and this EventAction considered complete.