public interface Pathable
Path.| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBounds()
Returns the rectangle that bounds the pathable.
|
int |
getOrientation()
Should return the orientation of the pathable, or
DirectionCodes.NONE if the
pathable does not support orientation. |
int |
getX()
Returns the pathable's current x coordinate.
|
int |
getY()
Returns the pathable's current y coordinate.
|
void |
pathBeginning()
Called by a path when this pathable is made to start along a path.
|
void |
pathCompleted(long timestamp)
Called by a path when this pathable finishes moving along its path.
|
void |
setLocation(int x,
int y)
Updates the pathable's current coordinates.
|
void |
setOrientation(int orient)
Will be called by a path when it moves the pathable in the specified direction.
|
int getX()
int getY()
Rectangle getBounds()
void setLocation(int x,
int y)
void setOrientation(int orient)
DirectionCodesint getOrientation()
DirectionCodes.NONE if the
pathable does not support orientation.void pathBeginning()
void pathCompleted(long timestamp)
Copyright © 2015. All rights reserved.