|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Pathable
Used in conjunction with a Path.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||