design: wall switches, presets and one-way sight (#42)

This commit is contained in:
2026-11-15 18:23:26 +01:00
parent a7f302ec26
commit 7511daa3c5
2 changed files with 82 additions and 28 deletions
+26 -2
View File
@@ -51,8 +51,32 @@ A figure on the map. It may belong to a character; a plain token (monster, item)
_Avoid_: entity, piece, counter
**Wall**:
A barrier on the map with a length, a thickness and a height. It hides what its dimensions hide. A wall is full height unless the GM gives it a height in metres, so by default nobody sees over it; an older wall without a height keeps hiding everything behind it. In v1 a wall has zero thickness; per-wall thickness and the wall kinds are pending (map #38).
_Avoid_: blocker, collider, obstacle, sight blocker
A barrier on the map with a length, a thickness and a height. It hides what its dimensions hide. What it *does* is a set of **switches** it carries: blocks sight, blocks movement, and (for sight) a direction; a door is a wall with the door setting plus open/secret/locked. A named wall kind is only a preset over those switches, never the wall's own identity. A wall is full height unless the GM gives it a height in metres, so by default nobody sees over it; an older wall without a height keeps hiding everything behind it. In v1 a wall has zero thickness; per-wall thickness and what a low wall hides are pending (map #38).
_Avoid_: blocker, collider, obstacle, sight blocker, wall type (use preset)
**Wall switch**:
One independent setting a wall's behaviour is made of: `blocks sight` or `blocks movement`. Neither implies the other: a wall can hide what is behind it and let people walk through, or the reverse. A door's settings (open, secret, locked) and the sight direction are settings of the same wall but not switches. Switches are stored on the wall and read by the server.
_Avoid_: flag, bit, property (that word already means token data), restriction type
**Wall preset**:
A named combination of switches and door settings the GM picks in one action: wall, door, secret door, locked door, terrain, one-way wall. It is a shortcut and a label, not a stored kind: the wall keeps the switches, and the name is derived when they match a preset exactly (`custom` otherwise). So two presets can never drift from what the wall actually does.
_Avoid_: wall kind, wall type, category
**One-way wall**:
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. Which side is blocked is decided by the wall's `a -> b` order.
_Avoid_: one-sided wall, directed wall, mirror wall
**Secret door**:
A door the players never learn exists. It is always closed and, to a player, behaves exactly like a solid wall: same sight, same explored cells, same refusals, nothing that marks it as a door. The GM reveals it by making it an ordinary door and opening it.
_Avoid_: hidden door, concealed door, illusionary wall
**Locked door**:
A closed door the server refuses to open until it is unlocked. The lock is the GM's business only: players get no signal of it, and a locked door behaves exactly as a closed door to sight and movement. In v1 only the GM opens doors, so the setting is authoring state waiting for player door interaction.
_Avoid_: barred door
**Terrain**:
A wall preset that blocks movement and not sight: a railing, bushes, a low barrier, a pit edge. People see over or through it and cannot pass. It is absent from the sight rules entirely, so its thickness and height never affect sight.
_Avoid_: transparent wall, invisible wall, obstacle (that names the thing, not the preset)
**Property**:
One named value a token carries, e.g. "aura" or "hp". The server stores it and does not interpret it in v1, apart from the few sight keys it reads itself (see Height and Eye height); FFF does the rest later.