|
||||||||||
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.RemoveActorAction
public class RemoveActorAction
Removes an actor from the stage.
Constructor Summary | |
---|---|
RemoveActorAction()
|
Method Summary | |
---|---|
boolean |
act(float delta)
Updates the action based on time. |
Actor |
getRemoveActor()
|
void |
reset()
Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. |
void |
restart()
Sets the state of the action so it can be run again. |
void |
setRemoveActor(Actor removeActor)
Sets the actor to remove. |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
getActor, getPool, setActor, setPool, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoveActorAction()
Method Detail |
---|
public boolean act(float delta)
Action
Actor.act(float)
.
act
in class Action
delta
- Time in seconds since the last frame.
public void restart()
Action
restart
in class Action
public void reset()
Action
The default implementation calls Action.restart()
.
If a subclass has optional state, it must override this method, call super, and reset the optional state.
reset
in interface Pool.Poolable
reset
in class Action
public Actor getRemoveActor()
public void setRemoveActor(Actor removeActor)
actor
will be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |