Interface AStar.Transition
raft.kilavuz.runtime
All Known Implementing Classes:
Enclosing class:

public static interface AStar.Transition
a transition between two nodes

Field Summary
float
INFINITE_COST
constant to indicate cost for transition is infinite and hence transition is not possible
Method Summary
fromNode()
returns the node this transition originates from
float
getCost(PathContext context)
returns the cost, a negative value means transition is not possible.
toNode()
returns the node this transition leads to
Field Detail
INFINITE_COST
public static final float INFINITE_COST
constant to indicate cost for transition is infinite and hence transition is not possible
Method Detail
fromNode
AStar.Node fromNode()
returns the node this transition originates from

toNode
AStar.Node toNode()
returns the node this transition leads to

getCost
float getCost(PathContext context)
returns the cost, a negative value means transition is not possible.
Parameters:
context - more information about pathfinding enviroment.
See Also:
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