Class CountdownEventAction<T extends Event>

  • 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.
    • Constructor Detail

      • CountdownEventAction

        public CountdownEventAction​(java.lang.Class<? extends T> eventClass,
                                    int count)
    • Method Detail

      • 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.