Wiki
Clone wikiRogueSharp / RogueSharp / GoalMap / FindPath
GoalMapFindPath Method
Returns a shortest Path representing an ordered List of Points from the specified location to the Goal determined to have the highest priority Distance to the goals and the weight of the goals are both used in determining the priority The path must not pass through any obstacles specified in this GoalMap instance
Namespace: RogueSharp
Assembly:
Syntax
public Path FindPath( int x, int y )
Parameters
x
Type: SystemInt32
X location of the beginning of the path, starting with 0 as the farthest left
y
Type: SystemInt32
Y location of the beginning of the path, starting with 0 as the top
Return Value
Type: Path
An ordered List of Points representing a shortest path from the specified location to the Goal determined to have the highest priority
Implements
IGoalMapFindPath(Int32, Int32)
Exceptions
Exception | Condition |
---|---|
PathNotFoundException | Thrown when there is not a path from the Source x,y to any Goal or a Goal is not set |
See Also
Reference
GoalMap Class
RogueSharp Namespace
[6]: 2014-2016 Faron Bracy
Updated