|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.util.pathfinding.navmesh.Link
public class Link
A link between this space and another
| Constructor Summary | |
|---|---|
Link(float px,
float py,
Space target)
Create a new link |
|
| Method Summary | |
|---|---|
float |
distance2(float tx,
float ty)
Get the distance squared from this link to the given position |
Space |
getTarget()
Get the space this object links to |
float |
getX()
Get the x coordinate of the link |
float |
getY()
Get the y coordinate of the link |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Link(float px,
float py,
Space target)
px - The x coordinate of the linking pointpy - The y coordinate of the linking pointtarget - The target space we're linking to| Method Detail |
|---|
public float distance2(float tx,
float ty)
tx - The x coordinate of the target locationty - The y coordinate of the target location
public float getX()
public float getY()
public Space getTarget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||