screeps-clockwork
    Preparing search index...

    Class MonoFlowField

    A flow field is a 50x50 grid (representing a room), representing viable directions to travel to reach a particular target (or targets). A mono flow field only stores a single direction for each tile, so we represent this as 4 bits of an unsigned integer (0 for no direction, 1 for TOP, etc.).

    Index

    Methods

    Methods

    • Returns void

    • Get the direction for a given coordinate.

      Parameters

      • x: number
      • y: number

      Returns undefined | Direction

    • Set the direction for a given coordinate.

      Parameters

      • x: number
      • y: number
      • Optionalvalue: null | Direction

      Returns void