Namespace in reactor_3d_doors.js

R

23 public functions in 1 groups · show internal (_) functions

A cottage with its doors and windows.

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 source
R.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 source
R.normalizeDoor(raw)

A door's own fields, normalized: what a door piece keeps beyond kind, place, turn and material.

normalizeWindowFrame

static source
R.normalizeWindowFrame(raw)

A window's frame, normalized; null for none.

doorSound

static source
R.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 source
R.doorAxes(rot)

Door axes.

doorCells

static source
R.doorCells(piece)

The cells a door hangs across: its own and the next width - 1 along its across.

doorPoint

static source
R.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 source
R.doorLeafHeight(piece)

How tall a door's leaf stands.

doorBlocking

static source
R.doorBlocking(piece, state)

Whether the game's party may not pass a door now: shut and not opening on its own.

doorTop

static source
R.doorTop(piece)

The walkable top of a door piece: its threshold, or its leaf while it is shut.

doorShut

static source
R.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 source
R.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 source
R.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 source
R.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 source
R.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 source
R.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 source
R.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 source
R.doorLeaves(piece)

A door's leaves: each one's hinge in the door's frame, its length, and which side it hangs from.

shareDoorStates

static source
R.shareDoorStates(from, to)

A copy of a map read from the same files (the one the game is handed over a border) takes the door states of the map its world was built from.

Details

A copy of a map read from the same files (the one the game is handed over a border) takes the door states of the map its world was built from. The states are kept by the map's data, and the world past a border is built from one reading of the map while the game plays on another: the scene made again after the menu or a battle found none for the game's, and every door there started shut again.

doorClearAngle

static source
R.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 source
R.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 source
R.doorAt(mapData, x, y)

The door piece covering a cell of the game's map, if any.

doorAction

static source
R.doorAction(player)

The OK button facing a door: an action door opens or shuts, a locked one says so (or unlocks with its item).