|
libgdx API | |||||||||
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.TemporalAction
com.badlogic.gdx.scenes.scene2d.actions.FloatAction
public class FloatAction
An action that has a float, whose value is transitioned over time.
Field Summary |
---|
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
actor |
Constructor Summary | |
---|---|
FloatAction()
Creates a FloatAction that transitions from 0 to 1. |
|
FloatAction(float start,
float end)
Creates a FloatAction that transitions from start to end. |
Method Summary | |
---|---|
protected void |
begin()
Called the first time TemporalAction.act(float) is called. |
float |
getEnd()
|
float |
getStart()
|
float |
getValue()
Gets the current float value. |
void |
setEnd(float end)
Sets the value to transition to. |
void |
setStart(float start)
Sets the value to transition from. |
void |
setValue(float value)
Sets the current float value. |
protected void |
update(float percent)
Called each frame. |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction |
---|
act, end, finish, getDuration, getInterpolation, getTime, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action |
---|
getActor, getPool, setActor, setPool, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FloatAction()
public FloatAction(float start, float end)
Method Detail |
---|
protected void begin()
TemporalAction
TemporalAction.act(float)
is called. This is a good place to query the actor's
starting
state.
begin
in class TemporalAction
protected void update(float percent)
TemporalAction
update
in class TemporalAction
percent
- The percentage of completion for this action, growing from 0 to 1 over the duration. If
reversed
, this will shrink from 1 to 0.public float getValue()
public void setValue(float value)
public float getStart()
public void setStart(float start)
public float getEnd()
public void setEnd(float end)
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |