Files
FFF_vtt_frozen/docs/adr/0009-open-door-gap-leaf-is-body.md
SirStone 8aaf03be04 docs: add ADRs for the durable design decisions
22 ADRs: server-authoritative sight and single egress, per-recipient views/diffs, uniform
nack, opaque ids, 32 px tile unit, wall switches/presets, see-over, thick walls, open-door
gap, typed wall columns, proto 2, build order, zoom clamp, accepted status leak, player
marker, chunked explored, slow-client policy, session/key split, closing message, character
records, global lock, synchronous choice. Each links its tickets and its spec section.
2026-11-17 23:12:04 +01:00

31 lines
1.6 KiB
Markdown

# An open door is only a gap; the leaf is the wall's own body
A door stores the same `a`, `b`, `thickness` and `position` as any wall, and that body is its leaf
for sight, movement and the close push. Opening removes the body from both readers and leaves only
the gap between the wall pieces on either side; closing puts the same body back. Nothing swings,
slides or hinges, so a close never sweeps an arc through the room. We rejected a separate leaf
rectangle inside a deep opening and any clamp to the neighbouring jambs because that would create a
second geometry model, a second set of edge cases and a shape that disagrees with what the GM drew.
## Status
accepted
## Alternatives
- A thin leaf inside a thick opening: rejected, second geometry and a swing/clamp model.
- Clamping the leaf to the jamb inner faces: rejected, the drawn door would not be the door.
- Keeping an open door's body as an invisible blocker for sight or movement: rejected, an open
doorway must be a true gap.
## Consequences
A thick door bulges out of its doorway or leaves a step behind its jambs; that is authoring, not a
rule. A deep opening between thick jambs keeps the tunnel/keyhole view. The close push is measured
from the body with the 5.5 formula and reduces term-for-term to the old zero-thickness push, which
is the regression gate. A fixed window (`door:false`) never closes and so never pushes; a locked or
secret door pushes exactly as a plain closed door, preserving the door-equivalence obligation.
## Tickets
#46 (secret and locked doors), #50 (door geometry and push).
## Spec
Current §5.5 (door close push), §5.8 (closed vs open, leaf), §5.10.