Class CountdownEventAction<T extends Event>
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.Action
-
- com.badlogic.gdx.scenes.scene2d.actions.EventAction<T>
-
- com.badlogic.gdx.scenes.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.
-
-
Constructor Summary
Constructors Constructor Description CountdownEventAction(java.lang.Class<? extends T> eventClass, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handle(T event)
Called when the specific type of event occurs on the actor.-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.actions.EventAction
act, isActive, restart, setActive, setTarget
-
-
-
-
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 classEventAction<T extends Event>
- Returns:
- true if the event should be considered
handled
and this EventAction considered complete.
-
-