public interface Mover extends Localizable
Modifier and Type | Method and Description |
---|---|
double |
getOldX()
Get the old horizontal location.
|
double |
getOldY()
Get the old vertical location.
|
void |
moveLocation(double extrp,
Direction direction,
Direction... directions)
Move location using different directions.
|
void |
moveLocation(double extrp,
double vx,
double vy)
Move location using a simple force.
|
void |
moveLocationX(double extrp,
double vx)
Move location using a simple force.
|
void |
moveLocationY(double extrp,
double vy)
Move location using a simple force.
|
void |
setLocation(double x,
double y)
Set new location.
|
void |
setLocationX(double x)
Set new x location.
|
void |
setLocationY(double y)
Set new y location.
|
void |
teleport(double x,
double y)
Teleport to a new location.
|
void |
teleportX(double x)
Teleport to a new horizontal location.
|
void |
teleportY(double y)
Teleport to a new vertical location.
|
getX, getY
void moveLocation(double extrp, Direction direction, Direction... directions)
extrp
- The extrapolation value.direction
- The primary direction.directions
- The other directions.void moveLocationX(double extrp, double vx)
extrp
- The extrapolation value.vx
- The horizontal force.void moveLocationY(double extrp, double vy)
extrp
- The extrapolation value.vy
- The vertical force.void moveLocation(double extrp, double vx, double vy)
extrp
- The extrapolation value.vx
- The horizontal force.vy
- The vertical force.void teleport(double x, double y)
x
- The new horizontal location.y
- The new vertical location.void teleportX(double x)
x
- The new horizontal location.void teleportY(double y)
y
- The new vertical location.void setLocation(double x, double y)
x
- The new horizontal location.y
- The new vertical location.void setLocationX(double x)
x
- The new horizontal location.void setLocationY(double y)
y
- The new vertical location.double getOldX()
double getOldY()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.