Show / Hide Table of Contents

    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 Source

    GetWalkPoints(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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX