mwg API
    Preparing search index...

    Function hexLine

    • Every cell a straight line crosses from a to b, both included - the hex-grid analogue of mwg/roguelike's traceLine, and what a simple (non-shadowcast) hex field of view is built from: walk the line to a candidate cell and see whether anything on it is opaque.

      Parameters

      Returns HexCoord[]