public interface Localizable extends Surface
Modifier and Type | Method and Description |
---|---|
double |
getLocationOldX()
Get the old horizontal location.
|
double |
getLocationOldY()
Get the old vertical location.
|
double |
getLocationX()
Get the current horizontal location.
|
double |
getLocationY()
Get the current vertical location.
|
void |
moveLocation(double extrp,
double vx,
double vy)
Move location using a simple force.
|
void |
moveLocation(double extrp,
Force force,
Force... forces)
Move location using different forces.
|
void |
setLocation(double x,
double y)
Set location instantly.
|
void |
setLocationX(double x)
Set horizontal location.
|
void |
setLocationY(double y)
Set vertical location.
|
void |
setSize(int width,
int height)
Set size.
|
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.
|
getHeight, getLocationIntX, getLocationIntY, getWidth
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 moveLocation(double extrp, Force force, Force... forces)
extrp
- The extrapolation value.force
- The primary force.forces
- The other forces.void moveLocation(double extrp, double vx, double vy)
extrp
- The extrapolation value.vx
- The horizontal force.vy
- The vertical force.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.void setSize(int width, int height)
width
- The width.height
- The height.double getLocationX()
double getLocationY()
double getLocationOldX()
double getLocationOldY()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.