feat(walls): one-way sight per-viewer filter and ONEWAY fault (#58)
The vision fan blocks a sight-blocking one-way wall only for a viewer on its blind side (sight_dir names it; left is the (-dy,dx) normal of a->b), one sign test inline after the radius cull, so the hoisted wall list stays viewer-independent. Movement never reads the direction: one-way walls block both ways. Explored and tiles therefore differ by side and only ever grow. - geometry: WallDir + Wall.sightDir + blindTo, filter in visibilityPolygon. - worldmap: sight_dir mapping (movement mapping unchanged). - vision: the ONEWAY leak-fault build drops sight_dir player-side. - leakcheck: own side test for the fan and the clear-segment oracle; ONEWAY class detected against the sight_dir-dropped fan. - leak scenario gains a one-way wall the subject sees across; fault test asserts exactly ONEWAY. - oneway.test.mjs: both sides, tile sweep with its own oracle, flip with fixed endpoints, monotone explored/tiles, restart, two-way movement. - docs: DESIGN 5.8 mechanism sentence corrected; TESTING #58 markers built. - nginx harness: temp dirs created recursively (restart on one state dir).
This commit is contained in:
+4
-4
@@ -4,10 +4,10 @@
|
||||
##
|
||||
## Walls (DESIGN 8, FIXED #3): per-scene ids from `scene.next_wall_id`, monotonic and never reused
|
||||
## (a removal leaves the counter alone). Identity is `(scene, id)` in the DB, in memory and on the
|
||||
## wire. Today a wall's sight/movement behaviour is still `blocks = not (door and open)` in
|
||||
## geometry.Wall; the stored switches (`blocks_sight`, `blocks_movement`, `sight_dir`) gain their
|
||||
## behaviour in the window/one-way rounds (#57/#58). `flags` is a free JSON object the server never
|
||||
## interprets.
|
||||
## wire. A wall's sight/movement behaviour is still `blocks = not (door and open)` in
|
||||
## geometry.Wall plus the per-viewer one-way filter (`sight_dir`, #58); `blocks_sight` and
|
||||
## `blocks_movement` gain their general behaviour in the window/movement round (#57). `flags` is a
|
||||
## free JSON object the server never interprets.
|
||||
##
|
||||
## Wire payload shapes are DESIGN 6.1; the parts it leaves open are fixed here (recorded FIXED
|
||||
## owner-delegated, #19, in DESIGN 6.1/14):
|
||||
|
||||
Reference in New Issue
Block a user