Quick Reference
Other 23
| normalizeDoorSound() | One sound's settings, only what was said; null when nothing was. |
| normalizeDoor() | A door's own fields, normalized: what a door piece keeps beyond kind, place, turn and material. |
| normalizeWindowFrame() | A window's frame, normalized; null for none. |
| doorSound() | A sound a door makes: its own over its style's default. |
| doorAxes() | Door axes. |
| doorCells() | The cells a door hangs across: its own and the next width - 1 along its across. |
| doorPoint() | A point of a door's own frame (u across, v toward its front, cells) on the map, in tiles. |
| doorLeafHeight() | How tall a door's leaf stands. |
| doorBlocking() | Whether the game's party may not pass a door now: shut and not opening on its own. |
| doorTop() | The walkable top of a door piece: its threshold, or its leaf while it is shut. |
| doorShut() | Whether a door's leaf stands across its doorway now, whatever kind of door it is: what a shot or a look is st… |
| doorLocked() | Whether a door is locked now: a script's word first, then its lock (a switch off, an item not held). |
| doorTrimBoxes() | A door's casing, linings and transom, as boxes in its own frame (u across, y up, v to its front). |
| windowTrimBoxes() | A run of framed windows (one level, one turn, side by side) as boxes in the first one's frame. |
| pieceTrims() | Every door's and framed window's trim on a map, as pieces of kind "trim" (laid with the walls, never stood on… |
| doorwayCrossings() | Anything standing in a doorway's opening: the clear box of each doorway cell (the middle of its width, its wh… |
| doorLeafBoxes() | The boxes of one leaf, in its own frame: x along the leaf from its hinge (out to length), y up, z through it… |
| doorLeaves() | A door's leaves: each one's hinge in the door's frame, its length, and which side it hangs from. |
| shareDoorStates() | A copy of a map read from the same files (the one the game is handed over a border) takes the door states of… |
| doorClearAngle() | How far a door's leaves may turn toward dir (degrees) before one would touch a character on that side: each l… |
| doorOpenSide() | Which way a door opens for by: its authored way ("in" is away from its front, "out" toward it), or for "away"… |
| doorAt() | The door piece covering a cell of the game's map, if any. |
| doorAction() | The OK button facing a door: an action door opens or shuts, a locked one says so (or unlocks with its item). |
Other
normalizeDoorSound
static sourceR.normalizeDoorSound(raw)
One sound's settings, only what was said; null when nothing was.
Details
One sound's settings, only what was said; null when nothing was. A name of "" is silence.
normalizeDoor
static sourceR.normalizeDoor(raw)
A door's own fields, normalized: what a door piece keeps beyond kind, place, turn and material.
normalizeWindowFrame
static sourceR.normalizeWindowFrame(raw)
A window's frame, normalized; null for none.
doorSound
static sourceR.doorSound(piece, key)
A sound a door makes: its own over its style's default.
Details
A sound a door makes: its own over its style's default. Null when silent.
doorAxes
static sourceR.doorAxes(rot)
Door axes.
doorCells
static sourceR.doorCells(piece)
The cells a door hangs across: its own and the next width - 1 along its across.
doorPoint
static sourceR.doorPoint(piece, u, v)
A point of a door's own frame (u across, v toward its front, cells) on the map, in tiles.
doorLeafHeight
static sourceR.doorLeafHeight(piece)
How tall a door's leaf stands.
doorBlocking
static sourceR.doorBlocking(piece, state)
Whether the game's party may not pass a door now: shut and not opening on its own.
doorTop
static sourceR.doorTop(piece)
The walkable top of a door piece: its threshold, or its leaf while it is shut.
doorShut
static sourceR.doorShut(piece)
Whether a door's leaf stands across its doorway now, whatever kind of door it is: what a shot or a look is stopped by (worldRay).
Details
Whether a door's leaf stands across its doorway now, whatever kind of door it is: what a shot or a look
is stopped by (worldRay). An automatic door lets a walker by yet hides what is behind it until it swings.
No door is shut in the editor or in Node.
doorLocked
static sourceR.doorLocked(piece, state)
Whether a door is locked now: a script's word first, then its lock (a switch off, an item not held).
doorTrimBoxes
static sourceR.doorTrimBoxes(piece, wallMaterial)
A door's casing, linings and transom, as boxes in its own frame (u across, y up, v to its front).
windowTrimBoxes
static sourceR.windowTrimBoxes(frame, n, wallMaterial, seed)
A run of framed windows (one level, one turn, side by side) as boxes in the first one's frame.
pieceTrims
static sourceR.pieceTrims(mapData)
Every door's and framed window's trim on a map, as pieces of kind "trim" (laid with the walls, never stood on).
Details
Every door's and framed window's trim on a map, as pieces of kind "trim" (laid with the walls, never stood on). Cached against the sidecar's own piece list.
doorwayCrossings
static sourceR.doorwayCrossings(mapData)
Anything standing in a doorway's opening: the clear box of each doorway cell (the middle of its width, its whole depth, from its threshold to the door's head or the lintel) against the triangles of every piece, shape and trim near it (its own casing included), its own slab and door aside.
Details
Anything standing in a doorway's opening: the clear box of each doorway cell (the middle of its width, its whole depth, from its threshold to the door's head or the lintel) against the triangles of every piece, shape and trim near it (its own casing included), its own slab and door aside. One entry per doorway cell crossed: { x, y, z, by: [kinds] }. A generator or validate-map reads it.
doorLeafBoxes
static sourceR.doorLeafBoxes(piece, length, offset, mirror, meeting)
The boxes of one leaf, in its own frame: x along the leaf from its hinge (out to length), y up, z through it (+z toward the door's front), the hinge at the origin.
Details
The boxes of one leaf, in its own frame: x along the leaf from its
hinge (out to length), y up, z through it (+z toward the door's
front), the hinge at the origin. mirror hangs it from the far side.
doorLeaves
static sourceR.doorLeaves(piece)
A door's leaves: each one's hinge in the door's frame, its length, and which side it hangs from.
doorClearAngle
static sourceR.doorClearAngle(door, dir, characters)
How far a door's leaves may turn toward dir (degrees) before one would touch a character on that side: each leaf sweeps a quarter disc about its hinge, and a character in it stops the leaf where its edge meets the character's.
Details
How far a door's leaves may turn toward dir (degrees) before one would touch a character on that side:
each leaf sweeps a quarter disc about its hinge, and a character in it stops the leaf where its edge meets
the character's. Characters in the doorway itself (the wall's thickness) are where the shut leaf is; they
are left out, and an open door stays open while anyone is there.
doorOpenSide
static sourceR.doorOpenSide(door, by, characters)
Which way a door opens for by: its authored way ("in" is away from its front, "out" toward it), or for "away" (the default) away from whoever opens it, so a door pushed from inside opens outward.
Details
Which way a door opens for by: its authored way ("in" is away from its front, "out" toward it), or for
"away" (the default) away from whoever opens it, so a door pushed from inside opens outward. When that side
has someone in the leaves' way and the other side is clearer, the other side.
doorAt
static sourceR.doorAt(mapData, x, y)
The door piece covering a cell of the game's map, if any.
doorAction
static sourceR.doorAction(player)
The OK button facing a door: an action door opens or shuts, a locked one says so (or unlocks with its item).