diff --git a/GLOSSARY.md b/GLOSSARY.md index 71fef6e..768c0d8 100644 --- a/GLOSSARY.md +++ b/GLOSSARY.md @@ -94,6 +94,10 @@ _Avoid_: wall kind, wall type, category A wall whose sight switch carries a direction: it blocks sight from one side and lets the other side see across it. Movement is unaffected by the direction, so a one-way wall still blocks (or lets through) movement on both sides alike. The side is read from the wall's `a -> b` order: `left` is the left of that order, and the named side is the side that **cannot** see across — a viewer on the left of a `left` wall is blind across it, while a viewer on the right sees across. Explored area and tiles differ between the two sides as a consequence of that, and flipping the direction never takes back what either side has already explored. The GM's editor draws an arrow at the wall's middle from the seeing side toward the watched side. _Avoid_: one-sided wall, directed wall, mirror wall +**Blind side**: +The side a one-way wall's sight direction names (its `sight_dir`, `left` or `right` of the wall's `a -> b` order). A viewer standing on the blind side cannot see across the wall; the opposite side, the seeing side, sees across it. The direction is sight only, so movement is the same from both sides. +_Avoid_: dark side, blocked side, back side + **Door**: A piece of wall that can be opened. Closed, it blocks and pushes exactly as its switches say; its leaf is its own body, with the wall's thickness and placement, and nothing else. Open, that whole piece disappears from sight and movement — no leaf, no hinge, no swing, no arc — so the doorway is only the gap between the wall pieces on either side, and closing puts the same body back. A door has no shape of its own: jambs, leaf and thickness are just walls. In v1 only the GM opens or closes a door. _Avoid_: gateway, portal, door object, swinging door, leaf as a separate thing diff --git a/docs/DESIGN.md b/docs/DESIGN.md index 953530d..68a53a3 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -688,7 +688,8 @@ explored_chunk(player_id, scene_id, cx, cy, bits BLOB, PRIMARY KEY(player_id, sc inscribed 64-gon of radius R as range limit; sort by angle; each ray returns nearest hit among wall segments (body faces for a thick wall) + circle segments; result = CCW polygon. The wall list holds only walls whose sight switch is on; an open door and a window (`blocks_sight:false`) are - absent from it, and a one-way wall is skipped for a viewer on its blind side (5.8). + absent from it, and a one-way wall is skipped for a viewer on its seeing side — it blocks only + the blind side (5.8). - **Explored**: `cellsTouched(poly, cell)` marks every grid cell that the polygon overlaps; union into the player's explored set. The vertex-in-cell case is handled (bug log and its regression test: TESTING §5.1).