Namespace in reactor_fight_camera.js
C
17 public functions in 2 groups · show internal (_) functions
Quick Reference
Actions 1
| clearWay() | How the crane gets from one pose to another clear of the map's solids: { lift, skew } (0 for the straight way… |
Other 16
| normalizeSettings() | Normalize settings. |
| settings() | System's setting, with what the game changed in play (setLevel) over it. |
| world() | World. |
| point() | A character as a point: the middle of its cell, the ground under it, how tall it stands. |
| blocked() | Whether anything stands at the eye or between it and a point: a solid of the map, scenery tall enough to fill… |
| high() | The framing that always works: high over the points, from f's near side. |
| choose() | The first framing whose camera is clear of solids and sees its subjects; else the high one. |
| order() | variants with the one used last moved to the end: the same shot is not shown twice running. |
| swing() | The pose e of the way from a to b (eLook: how far the look point has gone, a little ahead of the eye; lift: t… |
| damp() | One frame of a critically damped spring: state.x follows target (arrays), tau frames behind. |
| swoopFrames() | A way of distance tiles takes this many frames, starting from least. |
| crownOf() | How far a model's top spreads, in tiles from its middle, when that is well past the footprint r a unit bumps… |
| sideOf() | Which side of the line from U to T a point is on: 1 right, -1 left. |
| classify() | What kind of action this is, for the camera. |
| treatment() | How an action of this style is filmed at this level: "full" (its own shots), "lean" (the tactical view leans… |
| shows() | Shows. |
Actions
clearWay
static sourceC.clearWay(world, from, to, out)
How the crane gets from one pose to another clear of the map's solids: { lift, skew } (0 for the straight way; else over what stands between, cresting in the middle or, by a building at the low end, right over that end), or null when no way is clear.
Details
How the crane gets from one pose to another clear of the map's solids:
{ lift, skew } (0 for the straight way; else over what stands
between, cresting in the middle or, by a building at the low end, right
over that end), or null when no way is clear. out: the way back up.
Other
normalizeSettings
static sourceC.normalizeSettings(raw)
Normalize settings.
settings
static sourceC.settings()
System's setting, with what the game changed in play (setLevel) over it.
world
static sourceC.world()
World.
point
static sourceC.point(character, world)
A character as a point: the middle of its cell, the ground under it, how tall it stands.
blocked
static sourceC.blocked(world, eye, point, own, strict)
Whether anything stands at the eye or between it and a point: a solid of the map, scenery tall enough to fill the picture, or a unit that is not one of the shot's own subjects.
Details
Whether anything stands at the eye or between it and a point: a solid
of the map, scenery tall enough to fill the picture, or a unit that is
not one of the shot's own subjects. The last stretch is the subject
itself.
high
static sourceC.high(world, points, f, radius)
The framing that always works: high over the points, from f's near side.
choose
static sourceC.choose(world, framings, points, f, radius, subjects, inOrder)
The first framing whose camera is clear of solids and sees its subjects; else the high one.
Details
The first framing whose camera is clear of solids and sees its subjects;
else the high one. framings are { variant, a, b } in order of
preference; points are what must be seen (chests).
order
static sourceC.order(variants, last)
variants with the one used last moved to the end: the same shot is not shown twice running.
swing
static sourceC.swing(a, b, e, eLook, lift, skew)
The pose e of the way from a to b (eLook: how far the look point has gone, a little ahead of the eye; lift: tiles the eye rises on the way, to pass over what stands between, highest in the middle, or with skew above 1 late in the way and below 1 early).
Details
The pose e of the way from a to b (eLook: how far the look point
has gone, a little ahead of the eye; lift: tiles the eye rises on the
way, to pass over what stands between, highest in the middle, or with
skew above 1 late in the way and below 1 early).
damp
static sourceC.damp(state, target, tau)
One frame of a critically damped spring: state.x follows target (arrays), tau frames behind.
Details
One frame of a critically damped spring: state.x follows target (arrays), tau frames behind.
swoopFrames
static sourceC.swoopFrames(least, distance)
A way of distance tiles takes this many frames, starting from least.
crownOf
static sourceC.crownOf(spec, r)
How far a model's top spreads, in tiles from its middle, when that is well past the footprint r a unit bumps into (a tree's crown over its trunk); 0 for a model that is as wide as it stands.
sideOf
static sourceC.sideOf(eye, U, T)
Which side of the line from U to T a point is on: 1 right, -1 left.
classify
static sourceC.classify(payload, U, targets, tactics)
What kind of action this is, for the camera.
treatment
static sourceC.treatment(style, level, reaction)
How an action of this style is filmed at this level: "full" (its own shots), "lean" (the tactical view leans toward it) or "none".
Details
How an action of this style is filmed at this level: "full" (its own shots), "lean" (the tactical view leans toward it) or "none". At Some the long shot and the area attack are filmed; the rest stay in the tactical view, so the shots that come are the ones worth cutting to (a kill still brings the camera down, from any of them).
shows
static sourceC.shows(style, level)
Shows.