public class IntAction extends TemporalAction
Constructor and Description |
---|
IntAction()
Creates an IntAction that transitions from 0 to 1.
|
IntAction(int start,
int end)
Creates an IntAction that transitions from start to end.
|
IntAction(int start,
int end,
float duration)
Creates a FloatAction that transitions from start to end.
|
IntAction(int start,
int end,
float duration,
Interpolation interpolation)
Creates a FloatAction that transitions from start to end.
|
Modifier and Type | Method and Description |
---|---|
protected void |
begin()
Called the first time
TemporalAction.act(float) is called. |
int |
getEnd() |
int |
getStart() |
int |
getValue()
Gets the current int value.
|
void |
setEnd(int end)
Sets the value to transition to.
|
void |
setStart(int start)
Sets the value to transition from.
|
void |
setValue(int value)
Sets the current int value.
|
protected void |
update(float percent)
Called each frame.
|
act, end, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
public IntAction()
public IntAction(int start, int end)
public IntAction(int start, int end, float duration)
public IntAction(int start, int end, float duration, @Null Interpolation interpolation)
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 int getValue()
public void setValue(int value)
public int getStart()
public void setStart(int start)
public int getEnd()
public void setEnd(int end)