| Constructor and Description |
|---|
DelegatingPathable(Pathable delegate) |
| 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.
|
public DelegatingPathable(Pathable delegate)
public int getX()
Pathablepublic int getY()
Pathablepublic Rectangle getBounds()
Pathablepublic void setLocation(int x,
int y)
PathablesetLocation in interface Pathablepublic void setOrientation(int orient)
PathablesetOrientation in interface PathableDirectionCodespublic int getOrientation()
PathableDirectionCodes.NONE if the
pathable does not support orientation.getOrientation in interface Pathablepublic void pathBeginning()
PathablepathBeginning in interface Pathablepublic void pathCompleted(long timestamp)
PathablepathCompleted in interface PathableCopyright © 2015. All rights reserved.