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

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.Action
      extended by com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
          extended by com.badlogic.gdx.scenes.scene2d.actions.FloatAction
All Implemented Interfaces:
Pool.Poolable

public class FloatAction
extends TemporalAction

An action that has a float, whose value is transitioned over time.

Author:
Nathan Sweet

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
 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.
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
act, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatAction

public FloatAction()
Creates a FloatAction that transitions from 0 to 1.


FloatAction

public FloatAction(float start,
                   float end)
Creates a FloatAction that transitions from start to end.

Method Detail

getValue

public float getValue()
Gets the current float value.


setValue

public void setValue(float value)
Sets the current float value.


getStart

public float getStart()

setStart

public void setStart(float start)
Sets the value to transition from.


getEnd

public float getEnd()

setEnd

public void setEnd(float end)
Sets the value to transition to.



Copyright © 2013. All Rights Reserved.