HazardShape

A value shape that methods take or return.

Group
scene
Methods
None
Fields
14

Fields

FieldTypeDescription
kind"tile" | "area" | "ray" | "sweep"Which shape.
tileHazardPoint?tile: the tile.
minHazardPoint?area: south-west corner, inclusive.
maxHazardPoint?area: north-east corner, inclusive.
originHazardPoint?ray and sweep: where it starts.
dxnumber?ray and sweep: x direction, one of -1, 0, 1.
dynumber?ray and sweep: y direction, one of -1, 0, 1.
skipnumber?ray: tiles to skip before the first covered one, the emitter's own footprint. Defaults to 1.
lennumber?ray: covered tiles along the direction.
widthnumber?ray: tiles across, centred on the axis. Defaults to 1.
speednumber?sweep: tiles travelled per tick.
sizenumber?sweep: footprint side length in tiles. Defaults to 1.
leadnumber?sweep: steps already travelled at tick zero, for a telegraph that projects something forward from where it will appear.
trailClearnumber?sweep: tiles at the rear of the sweep to leave clear, because you may step in behind something that has just vacated them.