feat(walls): windows — see-through barrier, movement follows blocks_movement (#57)

- geometry.Wall carries the stored blocks_sight/blocks_movement switches; sight asks
  blocksSight, movement and the status rules ask blocks (open door passes both).
- worldmap translates both switches; moverules only pushes on a movement barrier.
- leakcheck and the tile oracle read blocks_sight independently.
- Walls/token-details/tiles groups prove both forms, sight-through, stuck, push and
  the locked-window open refusal; existing scenes stay byte-identical.

Ref #57

# Conflicts:
#	server/geometry.nim
#	server/world.nim
#	server/worldmap.nim
#	tools/leakcheck.nim
This commit is contained in:
2026-11-19 23:09:05 +01:00
parent cc566ee16e
commit e989100f50
9 changed files with 226 additions and 36 deletions
+4 -4
View File
@@ -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. 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. A wall's behaviour is its stored switches: `blocks_sight` drives the vision fan and
## `blocks_movement` drives the move rules and the walls-sourced statuses, and an open door passes
## both (geometry.Wall, #57). `sight_dir` filters sight per viewer (the blind side, #58). `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):