Wiki

Clone wiki

RogueSharp / RogueSharp / GoalMap / FindPathAvoidingGoals

GoalMapFindPathAvoidingGoals Method

Returns a Path representing an ordered list of Points from the specified location away from Goals specified in this GoalMap instance Distance to the goals and the weight of the goals are both used in determining the priority of avoiding the Goals The path must not pass through any Obstacles specified in this GoalMap instance

Namespace: RogueSharp
Assembly:

Syntax

public Path FindPathAvoidingGoals(
    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
A Path representing ordered List of Points from the specified location away from Goals and avoiding Obstacles

Implements

IGoalMapFindPathAvoidingGoals(Int32, Int32)

See Also

Reference

GoalMap Class
RogueSharp Namespace

[5]: 2014-2016 Faron Bracy

Updated