public interface Transformable extends Feature, Mover, Shape
Modifier and Type | Method and Description |
---|---|
void |
addListener(TransformableListener listener)
Add a listener.
|
int |
getOldHeight()
Get the old height.
|
int |
getOldWidth()
Get the old width.
|
void |
removeListener(TransformableListener listener)
Remove a listener.
|
void |
setSize(int width,
int height)
Set surface size.
|
void |
transform(double x,
double y,
int width,
int height)
Transform the transformable.
|
checkListener, prepare
getFeature, getFeatures, getFeaturesType, hasFeature
getOldX, getOldY, moveLocation, moveLocation, moveLocationX, moveLocationY, setLocation, setLocationX, setLocationY, teleport, teleportX, teleportY
getX, getY
void addListener(TransformableListener listener)
listener
- The listener to add.void removeListener(TransformableListener listener)
listener
- The listener to remove.void setSize(int width, int height)
width
- The width.height
- The height.void transform(double x, double y, int width, int height)
x
- The horizontal location.y
- The vertical location.width
- The width.height
- The height.int getOldWidth()
int getOldHeight()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.