yolkbot
    Preparing search index...

    Class Pathfinding

    A pathfinding class for Game.pathing

    Index

    Constructors

    Methods

    • Runs pathfinding to a specific Position

      Parameters

      • targetPosition: Position

        The position to pathfind to

      Returns void

    • Updates the pathfinding movement. Is called in the game's main update loop (see Game.update)

      Returns void

    Properties

    activeNode: MapNode | null = null

    The active node the bot is on

    activeNodeIdx: number = -1

    The active node index the bot is using

    activePath: MapNode[] | null = null

    The active path the bot is traversing

    bot: Bot

    The Bot associated with the pathfinding instance

    game: Game

    The Game associated with the pathfinding instance