Package sk.tuke.kpi.gamelib.actions
Class Wait<A extends Actor>
- java.lang.Object
-
- sk.tuke.kpi.gamelib.actions.TemporalAction<A>
-
- sk.tuke.kpi.gamelib.actions.Wait<A>
-
- All Implemented Interfaces:
Action<A>
public final class Wait<A extends Actor> extends TemporalAction<A>
Wait for specified number of seconds.
-
-
Constructor Summary
Constructors Constructor Description Wait(float seconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getActor()
void
setActor(A actor)
Sets actor for the actionvoid
update(float progress)
-
Methods inherited from class sk.tuke.kpi.gamelib.actions.TemporalAction
begin, during, end, execute, getDuration, getTime, isBegan, isDone, reset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface sk.tuke.kpi.gamelib.actions.Action
scheduleFor, scheduleOn
-
-
-
-
Method Detail
-
getActor
@Nullable public A getActor()
- Returns:
- actor that performs the action
-
setActor
public void setActor(@Nullable A actor)
Description copied from interface:Action
Sets actor for the action- Parameters:
actor
- actor to be set for action
-
update
public void update(float progress)
- Specified by:
update
in classTemporalAction<A extends Actor>
-
-