|
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.CompositeAction
com.badlogic.gdx.scenes.scene2d.actions.Sequence
public class Sequence
Field Summary | |
---|---|
protected int |
currAction
|
protected Actor |
target
|
Fields inherited from class com.badlogic.gdx.scenes.scene2d.CompositeAction |
---|
actions |
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
listener |
Constructor Summary | |
---|---|
Sequence()
|
Method Summary | |
---|---|
static Sequence |
$(Action... actions)
|
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.CompositeAction |
---|
getActions |
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 |
Field Detail |
---|
protected Actor target
protected int currAction
Constructor Detail |
---|
public Sequence()
Method Detail |
---|
public static Sequence $(Action... actions)
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 |