Walls r1: one-way sight — per-viewer filter + ONEWAY fault #58
Notifications
Due Date
No due date set.
Blocks
Depends on
#59 Walls r1: player markers — emission, opaque ids, storage, resync
SirStone/FFF_vtt_frozen
#61 Walls r1: leak scenario rewrite and final fault gate
SirStone/FFF_vtt_frozen
#55 Walls r1: presets, label, one expand-and-validate path and switch-set invariants
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#58
Reference in New Issue
Block a user
Part of #52
Goal
the vision fan skips a sight-blocking one-way wall for a viewer on its seeing side — it blocks only the blind side — by one sign test against the (-dy,dx) normal, after the radius cull; the wall list stays hoisted and viewer-independent; movement stays two-way; explored and tiles differ by side and never shrink.
Acceptance criteria
one_waypreset +sight_dirleft/right; flipping swaps direction without moving endpoints.ONEWAYfault hook (dropssight_dirin player-facing computation) caught as exactly ONEWAY.User stories covered
19, 20, 21, 22, 47, 48, 49, 50, 62
Proven at
Notes
Built on main as
9fcbe88(rebased onto0f3aa23, #56 preserved:geometryWalls(sc, forSight)still applies thesecretgaphook and now also mapssight_dir).WallDir/Wall.sightDir,blindTo(sign ofcross(b-a, viewer-a)against the(-dy,dx)normal;leftnames the blind side), inline fan filter after the radius cull. Movement never reads it:ruleWallmaps no direction, so a one-way wall blocks both ways.computePolysusesgeometryWalls(..., forSight = true);LEAK_FAULT=oneWaydropssight_dirin the player-facing fan.vision.nim) for the fan and the clear-segment oracle, ONEWAY class matched against the sight_dir-dropped fan; scenario gains a one-way wall the subject sees across.tilesaccept group.oneWay-> exactly ONEWAY; clean build passes (positive control).Suites on the rebased tree:
nimble test -yall pass;node --test --test-concurrency=1 tools/*.test.mjs126/126 pass, 0 fail, 0 skipped. Test builds used a lane-localXDG_CACHE_HOMEnimcache.Corrected inverted blind-side sentence; behaviour unchanged (see #47)