Package sk.tuke.kpi.gamelib.actions
Class Invoke<A extends Actor>
- java.lang.Object
-
- sk.tuke.kpi.gamelib.actions.Invoke<A>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(float deltaTime)
Executes (one step of) the action.A
getActor()
boolean
isDone()
void
reset()
Resets the state of the action, except the assigned actor.void
setActor(A actor)
Sets actor for the action-
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
-
-
-
-
Constructor Detail
-
Invoke
public Invoke(@NotNull @NotNull java.lang.Runnable method)
-
Invoke
public Invoke(@NotNull @NotNull java.util.function.Consumer<@NotNull A> actorMethod)
-
-
Method Detail
-
getActor
@Nullable public A getActor()
-
setActor
public void setActor(@Nullable A actor)
Description copied from interface:Action
Sets actor for the action
-
isDone
public boolean isDone()
-
execute
public void execute(float deltaTime)
Description copied from interface:Action
Executes (one step of) the action. Called by the scene this action was scheduled on, prior to rendering.
-
-