mwg API
    Preparing search index...

    Interface TargetingControllerOptions

    interface TargetingControllerOptions {
        cursor?: Step;
        origin: Step;
        range: number;
        requireLineOfSight?: boolean;
        shape?: AreaShape;
        validate?: (target: Step) => boolean;
    }
    Index
    cursor?: Step

    the cursor's first cell; defaults to origin

    origin: Step

    where the aim starts: the thrower's own cell

    range: number

    how far the aim reaches, in the owning shape's own ruler (canTarget's)

    requireLineOfSight?: boolean

    whether a wall between origin and cursor blocks the aim; on by default

    shape?: AreaShape

    how a confirmed aim resolves into cells; a single cell by default

    validate?: (target: Step) => boolean

    A game's own rule on top of range and sight (not through an ally, not an empty floor tile). The controller never guesses what is in a cell: only the game knows.