|
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.TemporalAction
com.badlogic.gdx.scenes.scene2d.actions.Forever
public class Forever
Field Summary |
---|
Fields inherited from class com.badlogic.gdx.scenes.scene2d.TemporalAction |
---|
action, target |
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
listener |
Constructor Summary | |
---|---|
Forever()
|
Method Summary | |
---|---|
static Forever |
$(Action action)
|
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 |
setTarget(Actor actor)
Sets the Actor of this action. |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.TemporalAction |
---|
getAction |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
callActionCompletedListener, getCompletionListener, reset, setCompletionListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Forever()
Method Detail |
---|
public static Forever $(Action 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 |