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

public Class RepeatAction

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

Repeats an action a number of times or forever.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private int
private boolean
public static final int
private int
Inherited from com.badlogic.gdx.scenes.scene2d.actions.DelegateAction:
action

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Causes the action to not repeat again.

public int
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
setCount(int count)

Sets the number of times to repeat.

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

Field Detail

executedCountback to summary
private int executedCount
finishedback to summary
private boolean finished
FOREVERback to summary
public static final int FOREVER
repeatCountback to summary
private int repeatCount

Constructor Detail

RepeatActionback to summary
public RepeatAction()

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 action to not repeat again.

getCountback to summary
public int getCount()
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.

setCountback to summary
public void setCount(int count)

Sets the number of times to repeat. Can be set to FOREVER.