Class GoalMapExtensions
Contains extensions for IMapView<T>, that pertain generally to goal maps.
Inheritance
System.Object
GoalMapExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GoRogue.Pathing
Assembly: GoRogue.dll
Syntax
public static class GoalMapExtensions
Methods
| Improve this Doc View SourceGetDirectionOfMinValue(IMapView<Nullable<Double>>, Coord, AdjacencyRule)
Gets the direction of the neighbor with the minimum goal-map value from the given position.
Declaration
public static Direction GetDirectionOfMinValue(this IMapView<double?> goalMap, Coord position, AdjacencyRule adjacencyRule)
Parameters
Type | Name | Description |
---|---|---|
IMapView<System.Nullable<System.Double>> | goalMap | |
Coord | position | The position to get the minimum value for. |
AdjacencyRule | adjacencyRule | The adjacency rule to use to determine neighbors. |
Returns
Type | Description |
---|---|
Direction | The direction that has the minimum value in the goal-map, or NONE if the neighbors are all obstacles. |
GetDirectionOfMinValue(IMapView<Nullable<Double>>, Int32, Int32, AdjacencyRule)
Gets the direction of the neighbor with the minimum goal-map value from the given position.
Declaration
public static Direction GetDirectionOfMinValue(this IMapView<double?> goalMap, int positionX, int positionY, AdjacencyRule adjacencyRule)
Parameters
Type | Name | Description |
---|---|---|
IMapView<System.Nullable<System.Double>> | goalMap | |
System.Int32 | positionX | The x-value of the position to get the minimum value for. |
System.Int32 | positionY | The y-value of the position to get the minimum value for. |
AdjacencyRule | adjacencyRule | The adjacency rule to use to determine neighbors. |
Returns
Type | Description |
---|---|
Direction | The direction that has the minimum value in the goal-map, or NONE if the neighbors are all obstacles. |