Class Land.Point
raft.kilavuz.runtime.Land.Point Enclosing class:
-
public static class Land.Point
a point in grid space.
point instances are generally created by Land.getPoint(Vector3)
points are generally used in path seqeunces
See Also:
-
Field Summary |
|
sectorsector this point belongs to |
|
xx coordinate in grid space |
|
zz coordinate in grid space |
Method Summary |
|
|
|
equals(Object other)checks if this point equals another object. |
|
|
|
getAction()returns the action should be taken at this point (such as jump, open door etc)
this information is only meaningful in path sequences |
|
|
|
getLand()returns land this point belongs to |
|
getLocation()returns location of this point in world space. |
|
|
|
|
|
isPortalExit()returns true if this point at exit line of regular portal. |
|
toString()returns string represantation of this point |
Field Detail
x
public final float x
-
x coordinate in grid space
z
public final float z
-
z coordinate in grid space
sector
-
sector this point belongs to
Method Detail
clone
-
clones this point
Overrides:
-
getAction
public int getAction()
-
returns the action should be taken at this point (such as jump, open door etc)
this information is only meaningful in path sequences
isPortalExit
public boolean isPortalExit()
-
returns true if this point at exit line of regular portal.
exits points are by Path.Iterator's to mark sector boundaries
inSameCell
-
checks if this point is in same cell with another.
for a healty land returning true should mean two points are the same
getLocation
-
returns location of this point in world space.
getElevation
public float getElevation()
-
return interpolated elevation at this point
getLand
-
returns land this point belongs to
equals
public boolean equals(Object other) -
checks if this point equals another object.
return true if other is an instance of Point and x, z and sector are equal to other's
Overrides:
-
equals
-
checks if this point equals another.
return true if x, z and sector are equal to other's
getPointOnAdjacentSector
-
returns a point with same coordinates but belongs to adjacent sector.
calling this method on a point which is not a border point make no sense
and results in exception
-
Throws:
-
See Also:
-
toString
-
returns string represantation of this point
Overrides:
-
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com