Class PathContext
raft.kilavuz.runtime
java.lang.Object
  raft.kilavuz.runtime.PathContext

public class PathContext
extends Object
encapsulated information about pathfinding enviroment.
See Also:
AStar.findPath(AStar.Node, AStar.Node, PathContext), AStar.Transition.getCost(PathContext), AStar.Node.getCostEstimate(AStar.Node, PathContext)

Field Summary
float
distanceToEdges
this much space is tried to left between path points and portal sides.
float
turnVelocity
turn velocity in radians per second.
float
unitSize
size of unit in grid space we are trying to find a path for.
float
velocity
move velocity in grid units per second.
Constructor Summary
PathContext()
creates a new PathContext with default values
PathContext(float unitSize)
creates a new PathContext with given unit size and unitSize/2 as distanceToEdge.
PathContext(float unitSize, float distanceToEdge)
creates a new PathContext with given unit size and unitSize/2 as distanceToEdge.
Field Detail
unitSize
public float unitSize
size of unit in grid space we are trying to find a path for. 1 means unit is as wide as a Grid Cell. default is 1
See Also:

distanceToEdges
public float distanceToEdges
this much space is tried to left between path points and portal sides. 1 means unit is as wide as a Grid Cell. default is 0.5

velocity
public float velocity
move velocity in grid units per second. default is 1

turnVelocity
public float turnVelocity
turn velocity in radians per second. default is PI (180 degrees)
Constructor Detail
PathContext
public PathContext()
creates a new PathContext with default values

PathContext
public PathContext(float unitSize)
creates a new PathContext with given unit size and unitSize/2 as distanceToEdge. note this method doesnt make any checks on given values but you will get an exception while trying to find a path or creating an executable path if values are negative

PathContext
public PathContext(float unitSize,
                   float distanceToEdge)
creates a new PathContext with given unit size and unitSize/2 as distanceToEdge. note this method doesnt make any checks on given values but you will get an exception while trying to find a path or creating an executable path if values are negative
Java API documentation generated with DocFlex/Doclet v1.5.2
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