public class MoveToAction extends TemporalAction
| Constructor and Description |
|---|
MoveToAction() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAlignment() |
float |
getStartX()
Gets the starting X value, set in
begin(). |
float |
getStartY()
Gets the starting Y value, set in
begin(). |
float |
getX() |
float |
getY() |
void |
reset()
Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused.
|
void |
setAlignment(int alignment) |
void |
setPosition(float x,
float y) |
void |
setPosition(float x,
float y,
int alignment) |
void |
setStartPosition(float x,
float y) |
void |
setX(float x) |
void |
setY(float y) |
act, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, restart, setDuration, setInterpolation, setReverse, setTimepublic void reset()
Action
The default implementation calls Action.restart().
If a subclass has optional state, it must override this method, call super, and reset the optional state.
reset in interface Pool.Poolablereset in class TemporalActionpublic void setStartPosition(float x,
float y)
public void setPosition(float x,
float y)
public void setPosition(float x,
float y,
int alignment)
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getStartX()
begin().public float getStartY()
begin().public int getAlignment()
public void setAlignment(int alignment)
Copyright © 2021. All rights reserved.