|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.Action
com.badlogic.gdx.scenes.scene2d.actions.Delay
public class Delay
Field Summary | |
---|---|
protected Action |
action
|
protected float |
duration
|
protected float |
taken
|
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
listener |
Constructor Summary | |
---|---|
Delay()
|
Method Summary | |
---|---|
static Delay |
$(Action action,
float duration)
|
void |
act(float delta)
Apply the action. |
Action |
copy()
Creates a copy of this action. |
void |
finish()
Called by the owner of the action when it can release all its resources, e.g. |
Actor |
getTarget()
|
boolean |
isDone()
|
void |
reset()
Sets the Action back to a vanilla state. |
void |
setTarget(Actor actor)
Sets the Actor of this action. |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
callActionCompletedListener, getCompletionListener, setCompletionListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float taken
protected float duration
protected Action action
Constructor Detail |
---|
public Delay()
Method Detail |
---|
public static Delay $(Action action, float duration)
public void reset()
Action
reset
in class Action
public void setTarget(Actor actor)
Action
Actor
of this action. Will be called when the Action is added to an Actor via Actor.action(Action)
before any other call to this interface.
setTarget
in class Action
actor
- the actor.public void act(float delta)
Action
act
in class Action
delta
- delta time in secondspublic boolean isDone()
isDone
in class Action
public void finish()
Action
finish
in class Action
public Action copy()
Action
Action.setTarget(Actor)
on it without any side effects.
copy
in class Action
public Actor getTarget()
getTarget
in class Action
Actor
this action targets.
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |