Interface IPathFinder
This implements a path finder, to find a walking path from a position in 2D space to another position, while a mask implies where the character is allowed to walk on the 2D space.
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IPathFinder
Methods
| Improve this Doc View SourceGetWalkPoints(Position, Position)
Gets the walk points that the character need to travel in straight line to, until eventuall reaching the destination (an empty list if the travel is not possible).
Declaration
IEnumerable<Position> GetWalkPoints(Position from, Position to)
Parameters
Type | Name | Description |
---|---|---|
Position | from | From. |
Position | to | To. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Position> | The walk points. |
Init(Boolean[][])
This gives the path finder the mask which tells where the character is allowed to walk.
Declaration
void Init(bool[][] mask)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean[][] | mask | Mask. |