Wiki

Clone wiki

RogueSharp / RogueSharp / IGoalMap / FindPath

IGoalMapFindPath 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

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

See Also

Reference

IGoalMap Interface
RogueSharp Namespace

[4]: 2014-2016 Faron Bracy

Updated