Wall model: kinds or restriction flags #42
Notifications
Due Date
No due date set.
Blocks
Depends on
#44 Low walls: sight and movement
SirStone/FFF_vtt_frozen
#45 Thick walls: sight and movement
SirStone/FFF_vtt_frozen
#46 Secret and locked doors
SirStone/FFF_vtt_frozen
#47 Windows and one-way walls
SirStone/FFF_vtt_frozen
#48 Terrain walls
SirStone/FFF_vtt_frozen
#40 Research: how tabletops model wall kinds
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#42
Reference in New Issue
Block a user
Part of #38
Question
Is a wall's behaviour a fixed kind (wall, door, window, …) or a set of independent restrictions (blocks sight, blocks movement, direction, door state, visibility to players), with kinds as presets?
Decided and recorded. DESIGN.md v0.22: new 5.8 "Wall switches, presets, doors and one-way", plus 1, 3.1, 5.1, 5.5, 6.1, 7.4, 8 and 14 (Q6 superseded). GLOSSARY.md:
Wallrewritten; newWall switch,Wall preset,One-way wall,Secret door,Locked door,Terrain. Commit7511daaonmain, not pushed.What we decided
blocks_sight,blocks_movement, the door settingsdoor,open,secret,locked, and one direction fieldsight_dir(both|left|right). No light axis, no sound axis.doorset plus independent open/secret/locked, not a separate kind nor a state enum;door.setkeeps working as "setopen".Delegated knobs, as decided
flagsstays the never-interpreted free object.kindsurvives on the wire as a derived read-only label (exact preset match, elsecustom), never an input and never the authority. Columns vs one validated restrictions object, field names and the migration are #49's. Why: the server must interpret sight and movement, so they cannot live in a field it never reads, and one authority cannot drift.door.set open:trueon it, orsight_dir != both, isinvalid; the GM clearssecretfirst (one editor click). Why: an open or one-way secret door shows a gap or a sight seam and would stop being indistinguishable from a wall.blocks_movement; open it blocks neither, both sides. Why: Q4 made direction sight-only, and an open door already blocks nothing, so no second mechanism is needed.windowpreset: the switches can express a see-through door (door +blocks_sight:false: look through it closed, open it to pass), but "window" also names a distance-limited wall that two booleans cannot express, andterrainalready covers the fixed see-over barrier — so v1 ships no preset under an ambiguous name and #47 picks the meaning. No "blocks nothing" preset. Why: the name is ambiguous, and naming identical switch sets twice would be a lie in the picker.blocks_sight=falsenever enters the vision input at all, so thickness and height cannot affect terrain. What a low wall hides is #44, thickness is #45. Why: keeps the cheap case cheap and leaves #44/#45 a clean seam.blocks_movementand, for a door, closed; so terrain sticks and pushes like a solid wall, a one-way wall blocks movement both ways, and a secret door pushes a token exactly as a solid wall would.Consequences for the open cards (edited there, not here)
kindinput and the derived label; #49 owns columns-vs-object, names and upgrading existing rows.Answer: a wall's behaviour is a set of independent restrictions, and kinds are presets over them.