public interface PathMover
Modifier and Type | Method and Description |
---|---|
void |
assignDestination(int dx,
int dy)
Assign a specified location; will move automaticaly until reach it.
|
float |
getSpeedX()
Get horizontal speed.
|
float |
getSpeedY()
Get vertical speed.
|
int |
getX()
Get horizontal location.
|
int |
getXInTile()
Get horizontal location in tile (location on map).
|
int |
getY()
Get vertical location.
|
int |
getYInTile()
Get vertical location in tile (location on map).
|
void |
manualMove(float dx,
float dy,
float extrp)
Move to specified destination only on call.
|
void |
place(float x,
float y)
Set specified location.
|
void |
setSpeed(float speedX,
float speedY)
Set move speed.
|
void |
update(float extrp)
Update automatic moves if has.
|
void manualMove(float dx, float dy, float extrp)
dx
- destination x.dy
- destination y.extrp
- extrapolation value.void assignDestination(int dx, int dy)
dx
- destination x.dy
- destination y.void place(float x, float y)
x
- location x.y
- location y.void update(float extrp)
extrp
- extrapolation value.void setSpeed(float speedX, float speedY)
speedX
- horizontal speed.speedY
- vertical speed.float getSpeedX()
float getSpeedY()
int getX()
int getY()
int getXInTile()
int getYInTile()