/tg/ Station 13 - Modules - Types — Define Details

code/__DEFINES/navmap.dm

NAVMAP_BAKE_RULES_VERSIONIncrement when baking changes make saved navmaps outdated.
NAV_GROUNDGROUND edge bits: horizontal cardinal directions are bits 0-3 and UP/DOWN are bits 4-5.
NAV_FLIGHTFLYING edge bits: horizontal cardinal directions are bits 6-9 and UP/DOWN are bits 10-11.
NAV_CONDCONDITIONAL edge bits: horizontal cardinal directions are bits 12-15 and UP/DOWN are bits 16-17.
NAV_BAKEDset once a turf has been baked.
NAV_SIMULATEDset when this turf is simulated (atmos)
NAV_COST_LAVATerrain cost modifier for lava turfs.
NAV_COST_MAINTENANCEArea-derived terrain cost modifier for maintenance turfs.
NAV_COST_HALLWAYArea-derived terrain cost modifier for hallway turfs.
NAV_NON_PASS_FLAGSpass_flags bits that are NOT passability grants and must be stripped when we build a blocker mask
NAV_RELEVANTreturns TRUE if this movable should affect the turfs navigatable status
NAV_IS_FLYINGTRUE if the mover is in a movement class that reads the flight bits. Compute ONCE per search.
NAV_CLASS_BIT_FASTThe class bit for a dir given a precomputed is_flying flag (no movement_type re-read).
NAV_ENSURE_BAKEDmake this turf baked if it isn't yet (weed reference here)
NAV_EDGE_OPEN_BAKEDSets result when a baked cardinal edge admits this mover.
NAV_DIAGONAL_OPENSets result when either cardinal route around a diagonal corner is open.
NAV_CAN_STEP_TOSets result when a cardinal or diagonal step is passable.

Define Details

NAVMAP_BAKE_RULES_VERSION

Increment when baking changes make saved navmaps outdated.

NAV_BAKED

set once a turf has been baked.

NAV_CAN_STEP_TO

Sets result when a cardinal or diagonal step is passable.

NAV_CLASS_BIT_FAST

The class bit for a dir given a precomputed is_flying flag (no movement_type re-read).

NAV_COND

CONDITIONAL edge bits: horizontal cardinal directions are bits 12-15 and UP/DOWN are bits 16-17.

NAV_COST_HALLWAY

Area-derived terrain cost modifier for hallway turfs.

NAV_COST_LAVA

Terrain cost modifier for lava turfs.

NAV_COST_MAINTENANCE

Area-derived terrain cost modifier for maintenance turfs.

NAV_DIAGONAL_OPEN

Sets result when either cardinal route around a diagonal corner is open.

NAV_EDGE_OPEN_BAKED

Sets result when a baked cardinal edge admits this mover.

NAV_ENSURE_BAKED

make this turf baked if it isn't yet (weed reference here)

NAV_FLIGHT

FLYING edge bits: horizontal cardinal directions are bits 6-9 and UP/DOWN are bits 10-11.

NAV_GROUND

GROUND edge bits: horizontal cardinal directions are bits 0-3 and UP/DOWN are bits 4-5.

NAV_IS_FLYING

TRUE if the mover is in a movement class that reads the flight bits. Compute ONCE per search.

NAV_NON_PASS_FLAGS

pass_flags bits that are NOT passability grants and must be stripped when we build a blocker mask

NAV_RELEVANT

returns TRUE if this movable should affect the turfs navigatable status

NAV_SIMULATED

set when this turf is simulated (atmos)