APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.scenes.scene2d.actions

public Class RemoveListenerAction

extends Action
Class Inheritance
Imports
com.badlogic.gdx.scenes.scene2d.Action, .EventListener

Removes a listener from an actor.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private boolean
private EventListener
Inherited from com.badlogic.gdx.scenes.scene2d.Action:
actortarget

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
act(float delta)

Implements abstract com.badlogic.gdx.scenes.scene2d.Action.act.

Updates the action based on time.

public boolean
public EventListener
public void
reset()

Overrides com.badlogic.gdx.scenes.scene2d.Action.reset.

Implements com.badlogic.gdx.utils.Pool.Poolable.reset.

Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused.

public void
setCapture(boolean capture)

public void
Inherited from com.badlogic.gdx.scenes.scene2d.Action:
getActorgetPoolgetTargetrestartsetActorsetPoolsetTargettoString

Field Detail

captureback to summary
private boolean capture
listenerback to summary
private EventListener listener

Constructor Detail

RemoveListenerActionback to summary
public RemoveListenerAction()

Method Detail

actback to summary
public boolean act(float delta)

Implements abstract com.badlogic.gdx.scenes.scene2d.Action.act.

Doc from com.badlogic.gdx.scenes.scene2d.Action.act.

Updates the action based on time. Typically this is called each frame by Actor#act(float).

getCaptureback to summary
public boolean getCapture()
getListenerback to summary
public EventListener getListener()
resetback to summary
public void reset()

Overrides com.badlogic.gdx.scenes.scene2d.Action.reset.

Implements com.badlogic.gdx.utils.Pool.Poolable.reset.

Doc from com.badlogic.gdx.scenes.scene2d.Action.reset.

Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. State required to be set for every usage of this action or computed during the action does not need to be reset.

The default implementation calls restart().

If a subclass has optional state, it must override this method, call super, and reset the optional state.

setCaptureback to summary
public void setCapture(boolean capture)
setListenerback to summary
public void setListener(EventListener listener)