libgdx API

com.badlogic.gdx.scenes.scene2d.actions
Class Remove

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.Action
      extended by com.badlogic.gdx.scenes.scene2d.actions.Remove

public class Remove
extends Action


Field Summary
protected  boolean removed
           
protected  Actor target
           
 
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action
listener
 
Constructor Summary
Remove()
           
 
Method Summary
static Remove $()
           
 void act(float delta)
          Apply the action.
 Action copy()
          Creates a copy of this action.
 Actor getTarget()
           
 boolean isDone()
           
 void setTarget(Actor actor)
          Sets the Actor of this action.
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action
callActionCompletedListener, finish, getCompletionListener, reset, setCompletionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected Actor target

removed

protected boolean removed
Constructor Detail

Remove

public Remove()
Method Detail

$

public static Remove $()

setTarget

public void setTarget(Actor actor)
Description copied from class: Action
Sets the 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.

Specified by:
setTarget in class Action
Parameters:
actor - the actor.

act

public void act(float delta)
Description copied from class: Action
Apply the action.

Specified by:
act in class Action
Parameters:
delta - delta time in seconds

isDone

public boolean isDone()
Specified by:
isDone in class Action
Returns:
whether the action is done or not

copy

public Action copy()
Description copied from class: Action
Creates a copy of this action. The action must be in a state independent of the original and one must be able to call Action.setTarget(Actor) on it without any side effects.

Specified by:
copy in class Action

getTarget

public Actor getTarget()
Specified by:
getTarget in class Action
Returns:
the Actor this action targets.

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)