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

public Class DelayAction

extends DelegateAction
implements FinishableAction
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.scenes.scene2d.actions.FinishableAction

Delays execution of an action or inserts a pause in a SequenceAction.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private float
private float
Inherited from com.badlogic.gdx.scenes.scene2d.actions.DelegateAction:
action

Constructor Summary

AccessConstructor and Description
public
public
DelayAction(float duration)

Method Summary

Modifier and TypeMethod and Description
protected boolean
public void
finish()

Implements com.badlogic.gdx.scenes.scene2d.actions.FinishableAction.finish.

Causes the delay to be complete.

public float
public float
getTime()

Gets the time spent waiting for the delay.

public void
restart()

Overrides com.badlogic.gdx.scenes.scene2d.actions.DelegateAction.restart.

Sets the state of the action so it can be run again.

public void
setDuration(float duration)

Sets the length of the delay in seconds.

public void
setTime(float time)

Sets the time spent waiting for the delay.

Inherited from com.badlogic.gdx.scenes.scene2d.actions.DelegateAction:
actgetActionresetsetActionsetActorsetTargettoString

Field Detail

durationback to summary
private float duration
timeback to summary
private float time

Constructor Detail

DelayActionback to summary
public DelayAction()
DelayActionback to summary
public DelayAction(float duration)

Method Detail

delegateback to summary
protected boolean delegate(float delta)

Implements abstract com.badlogic.gdx.scenes.scene2d.actions.DelegateAction.delegate.

finishback to summary
public void finish()

Implements com.badlogic.gdx.scenes.scene2d.actions.FinishableAction.finish.

Causes the delay to be complete.

getDurationback to summary
public float getDuration()
getTimeback to summary
public float getTime()

Gets the time spent waiting for the delay.

restartback to summary
public void restart()

Overrides com.badlogic.gdx.scenes.scene2d.actions.DelegateAction.restart.

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

Sets the state of the action so it can be run again.

setDurationback to summary
public void setDuration(float duration)

Sets the length of the delay in seconds.

setTimeback to summary
public void setTime(float time)

Sets the time spent waiting for the delay.