Namespace in reactor_fight_action.js

A

104 functions in 6 groups · hide internal

A Battle Room: a classic battle staged in 3D.

Quick Reference

Setup & Creation 1

buildHull() The heights themselves, from a loaded model: its triangles at the instance's size, base transform, pitch and…

Getting Information 2

measureAll() Every body in a battle on a 3D map is measured as it starts, so the heights any of them needs are asked for a…
heightOf() Height of.

Checks (True / False) 1

isActing() Whether a unit is in the middle of a played-out action.

Actions 14

clearSpot() The nearest cell round a unit where its body has room, that a walker can stand on, within a step of its own l…
enter() A battle begins (or a save in one loads): the battle's keys, and nothing left over from another mode.
restoreOrder() The party as it was before a fallen leader handed the lead on: the members it had then, in their order, with…
leave() The battle ends: units get their walking pace back, the keys theirs, the weapon comes down, what flies goes.
callMenu() Opens the map's menu as its key would, when the map allows it.
takeAim() Fills A.aimNow for the player: the muzzle, the line the weapon shoots along, the point it aims at and where t…
startRun() Starts the run.
endRun() Ends the run.
placeAimAt() Place aim at.
enterHooks() Which sides the map's pages wait for to enter an area ({ ally, enemy }): asked once a battle, so on a map wit…
addFx() Adds the fx.
dropFx() Drop fx.
removeFx() Removes the fx.
dropAllFx() Drop all fx.

Updating & Drawing 11

updateCapture() A message or the battle's end gives the mouse back; the battle takes it again when the message has closed.
updateShots() What flies: each moves its speed a frame and lands on the first body or wall in its way; a rocket bursts.
updateRun() Advances a run a frame; false when it is over.
updatePlayer() Updates the player each frame.
updateSwing() Updates the swing each frame.
step() One step toward (or away from) a spot, when the way is clear and the body has room on the cell it would take…
updateUnit() Updates the unit each frame.
update() Update.
updateGetaway() Ends a battle that can be escaped as an escape once the leader has run far enough from every enemy.
updateMarks() A frame of those marks: the spark shrinks away, the mark stays its time and shrinks out.
drawFx() Places what flies for this frame: a tracer's head along its line, a flying thing where its shot is.

Other 75

parse() The action tags of one note, or null when it has none.
settings() A record's action settings: its own rrBattle (what the Database's Action and First Person Battles card stores…
profile() What the battler fights with: its first weapon's tags over its type's defaults, or bare hands.
cooldownOf() A skill's or an item's cooldown on the hotbar, in frames.
standsClear() Whether a unit stands clear of every other body: on a cell of its own, outside any big body's footprint.
reseat() Changes who leads the party (change does it) without moving anybody: every member's body stays where it is, a…
remodel() A party character now shows another member: the model it wore is let go, so the map's scene gives it the one…
handOver() The leader fell: the party's member at index takes the lead where it stands, and the fallen one stays where i…
notice() A line for the player, shown for a while whichever HUD is drawn (see Notice below); a later one replaces it.
is3D() Is3 d.
groundOf() Ground of.
hullOf() Hull of.
hullsPending() How many models' heights are still out on the worker; one out past HullWorker.WAIT_MS is worked out here now.
bodyOf() A body's measure: tall, and either round with wide (a figure) or its footprint's halves, turn and mask.
reachTo() How far a ground point is from a body's outline, in tiles: a footprint's is nothing inside it.
nearPoint() The part of a body nearest a ground point, into out as x and z: a footprint's nearest point, a figure's middl…
gap() The room between one body's middle and another's outline, in tiles.
levelGap() How far apart two bodies stand in height, in tiles.
deep() Whether lines are tested against the world as it is drawn: a 3D map, in a runtime that has the query.
sees() Whether one unit's eyes reach another's chest: tiles that hide, and on a 3D map the ground, what is built (wh…
lineOpen() Whether the line from one body (a share of its height up) to another's reaches it with nothing of the world b…
blowClear() Whether a blow struck from one body's chest reaches another's: nothing of the world between them.
rayWorld() How far along a line the world lets it go, at most far: stopped by a tile that hides and, on a 3D map, by the…
props() The map's models that are no unit of the battle and stand in a line's way (a prop, a parked vehicle, a bystan…
overhangs() Whether a model's heights (A.buildHull) have open air under its mesh somewhere: under an overhang or between…
rayProps() How far along a line those models let it go, at most far.
rayBody() Where a line enters a body, at most far along it; -1 when it misses.
rayUnits() The nearest unit of team a line passes through, within far (see rayBody).
bodies() Who stands where, a side at a time, measured once a frame however many lines are tested against them (every s…
roomAt() Whether a unit's body has room on a cell: nobody stands there, no big body covers it, and nothing built stand…
wantsCapture() Whether a click should take the mouse first: a look that turns by it, the mouse not yet held, and no refusal…
camera() The map's 3D camera, when the map is drawn through one.
cameraMode() Camera mode.
relative() Relative.
muzzle() Where a shot leaves the character: the tip of what it holds, else beside its chest.
shotFrom() Where a shot starts: the muzzle, when the way to it from the body's own chest is open.
screenOf() Screen of.
facing() The nearest of the four ways a character can face to a yaw in degrees (0 north, 90 east).
land() One action's worth of a blow from unit on targets, landed now through the stock math.
fire() Fires the unit's weapon (or an enemy's bolt) along a line: at once for a bullet, as a thing that flies for th…
bodyBusy() Whether a character's body is busy with something no attack should cut into (a climb, a pull-up, a ride).
weaponsOf() The weapons the actor can take in hand: the one equipped, then those in the bag it can equip.
weaponRound() The switching order: the weapons carried in the Database's order, whichever is in hand (a list of its own, no…
hotbarOf() The hotbar: the actor's skills other than attack and guard, then the party's items usable in battle; eight at…
holdAim() The weapon comes up on the line the player aims along (a point ahead that the hold follows), or down again.
knock() Drives a struck unit a cell back from who struck it, when its body has room on the cell behind.
windupShow() A wind-up shows as the pose its action opens with: the first motion of its sequence, held for the wind-up.
swing() Swing.
swingShow() What a swing looks and sounds like: the weapon's own sequence's motion and sound when it has one, else a lung…
shotShow() A shot's sound and flash: the weapon's sequence's sound and muzzle animation when it has them, else the syste…
fallenNear() The fallen of its side an action that revives lands on: those lying as near as a friendly action reaches (the…
aiOf() Ai of.
struck() A unit took a blow: it knows who struck it now, and flinches when it was not already striking.
notices() Whether an idle unit notices an opponent: in front of it within sight, or near enough to hear, with nothing b…
nearest() Nearest.
route() The way a character can walk from its cell toward (x, y) round what stands between: the steps (2, 4, 6, 8) in…
choose() What the unit will do next and how near it must stand: its action patterns (an actor its skills) decide.
wayClear() Whether the blow a unit has chosen has a clear way to its target: a bolt's line from where it leaves the weap…
waitsForLead() Waits for lead.
climbSpots() Every way up near a target standing above the ground: cells from which a ledge within reach or a ladder leads…
climbTo() The way up a unit should take to a target above it: the spot on its own level nearest the two of them, or nul…
climbPick() Climb pick.
attackersOn() How many units are winding up or striking at a unit right now.
strike() The wind-up is over: the blow, the shot or the skill.
seen() Seen.
tracer() A shot that lands at once: a streak from the muzzle to where it struck, gone in a few frames.
burst() Burst.
impact() A spark and a mark where a shot going (dx, dy, dz) met the world at (x, y, z): the mark half sunk in what it…
cameraBodies() What a body is to the battle's camera: every unit but the player's own and every other character standing on…
cameraBodyReach() How far along the way from from (toward to, length tiles) the first body stands, or length when none does.
shoulderCamera() Where the over-the-shoulder camera stands.
lookToNear() Look to near.
hookShake() The stock screen shake slides the whole picture sideways, which over a 3D view shows the edge of the canvas a…
hookPhysics() A unit that climbed after its target comes down as the party does: it steps off a roof's edge when the drop i…
hookStage() The stage's flinch pins a unit to its cell for a moment: never one the player is walking.

Setup & Creation

buildHull

static source
A.buildHull(R, template, json, spec)

The heights themselves, from a loaded model: its triangles at the instance's size, base transform, pitch and roll (its facing turns the question, as for its mask), each laid over the cells it covers with the heights it has there.

Details

The heights themselves, from a loaded model: its triangles at the instance's size, base transform, pitch and roll (its facing turns the question, as for its mask), each laid over the cells it covers with the heights it has there. A mesh too dense to walk triangle by triangle is read from its vertices, as its mask is.

Getting Information

measureAll

static source
A.measureAll(fight)

Every body in a battle on a 3D map is measured as it starts, so the heights any of them needs are asked for at once.

heightOf

static source
A.heightOf(character)

Height of.

Checks (True / False)

isActing

static source
A.isActing(fight, unitId)

Whether a unit is in the middle of a played-out action.

Actions

clearSpot

static source
A.clearSpot(fight, unit, character)

The nearest cell round a unit where its body has room, that a walker can stand on, within a step of its own level and out of deep water; null when there is none near.

enter

static source
A.enter(fight)

A battle begins (or a save in one loads): the battle's keys, and nothing left over from another mode.

restoreOrder

static source
A.restoreOrder(st)

The party as it was before a fallen leader handed the lead on: the members it had then, in their order, with anyone who joined during the battle after them and anyone who left gone.

leave

static source
A.leave(fight)

The battle ends: units get their walking pace back, the keys theirs, the weapon comes down, what flies goes.

callMenu

static source
A.callMenu()

Opens the map's menu as its key would, when the map allows it.

takeAim

static source
A.takeAim(fight, unit, range)

Fills A.aimNow for the player: the muzzle, the line the weapon shoots along, the point it aims at and where the crosshair sits.

Details

Fills A.aimNow for the player: the muzzle, the line the weapon shoots along, the point it aims at and where the crosshair sits. Third and first person aim where the camera looks; the other views (and 2D maps) at the pointer on the ground, or along the facing (or at the locked target) when there is no pointer.

startRun

static source
A.startRun(fight, unit, action, targets, options)

Starts the run.

endRun

static source
A.endRun(fight, entry, interrupted)

Ends the run.

placeAimAt

static source
A.placeAimAt(character)

Place aim at.

enterHooks

static source
A.enterHooks(fight)

Which sides the map's pages wait for to enter an area ({ ally, enemy }): asked once a battle, so on a map with no such page a walk costs nothing.

addFx

static source
A.addFx(entry)

Adds the fx.

dropFx

static source
A.dropFx(id)

Drop fx.

removeFx

static source
A.removeFx(index)

Removes the fx.

dropAllFx

static source
A.dropAllFx()

Drop all fx.

Updating & Drawing

updateCapture

static source
A.updateCapture(fight)

A message or the battle's end gives the mouse back; the battle takes it again when the message has closed.

updateShots

static source
A.updateShots(fight, st)

What flies: each moves its speed a frame and lands on the first body or wall in its way; a rocket bursts.

updateRun

static source
A.updateRun(fight, entry)

Advances a run a frame; false when it is over.

updatePlayer

static source
A.updatePlayer(fight, st)

Updates the player each frame.

updateSwing

static source
A.updateSwing(fight, st, unit, battler, character, profile)

Updates the swing each frame.

step

static source
A.step(fight, unit, character, x, y, away, round)

One step toward (or away from) a spot, when the way is clear and the body has room on the cell it would take (A.roomAt).

Details

One step toward (or away from) a spot, when the way is clear and the body has room on the cell it would take (A.roomAt). round: what it goes to is at arm's length behind something (a wall between them): the straight way is no use, only the way round.

updateUnit

static source
A.updateUnit(fight, st, unit, character, battler, ai, player)

Updates the unit each frame.

update

static source
A.update(fight)

Update.

updateGetaway

static source
A.updateGetaway(fight, st, playerUnit)

Ends a battle that can be escaped as an escape once the leader has run far enough from every enemy.

updateMarks

static source
A.updateMarks()

A frame of those marks: the spark shrinks away, the mark stays its time and shrinks out.

drawFx

static source
A.drawFx()

Places what flies for this frame: a tracer's head along its line, a flying thing where its shot is.

Other

parse

static source
A.parse(note)

The action tags of one note, or null when it has none.

settings

static source
A.settings(record)

A record's action settings: its own rrBattle (what the Database's Action and First Person Battles card stores: { fireRate, magazine, reload, spread, combo, projectile, cooldown }, each optional), and for whatever that leaves unset the tags of its note.

Details

A record's action settings: its own rrBattle (what the Database's Action and First Person Battles card stores: { fireRate, magazine, reload, spread, combo, projectile, cooldown }, each optional), and for whatever that leaves unset the tags of its note. Null when it sets nothing either way.

profile

static source
A.profile(battler)

What the battler fights with: its first weapon's tags over its type's defaults, or bare hands.

Details

What the battler fights with: its first weapon's tags over its type's defaults, or bare hands. The object is shared: do not change it.

cooldownOf

static source
A.cooldownOf(item)

A skill's or an item's cooldown on the hotbar, in frames.

standsClear

static source
A.standsClear(fight, unit, character)

Whether a unit stands clear of every other body: on a cell of its own, outside any big body's footprint.

reseat

static source
A.reseat(change)

Changes who leads the party (change does it) without moving anybody: every member's body stays where it is, as it is; only which character shows it changes, so the player becomes the new leader where that member stands.

Details

Changes who leads the party (change does it) without moving anybody: every member's body stays where it is, as it is; only which character shows it changes, so the player becomes the new leader where that member stands. The camera goes over to it rather than cutting, and what each holds goes with its holder.

remodel

static source
A.remodel(character)

A party character now shows another member: the model it wore is let go, so the map's scene gives it the one it shows now.

Details

A party character now shows another member: the model it wore is let go, so the map's scene gives it the one it shows now. (The scene keeps a character's model for as long as the character is drawn and does not look again at whose it is; without this the fallen leader's place would show the new leader's model lying.)

handOver

static source
A.handOver(fight, st, index)

The leader fell: the party's member at index takes the lead where it stands, and the fallen one stays where it fell.

Details

The leader fell: the party's member at index takes the lead where it stands, and the fallen one stays where it fell. The player is told in one line, hears it, and cannot be hurt for a moment.

notice

static source
A.notice(text, frames)

A line for the player, shown for a while whichever HUD is drawn (see Notice below); a later one replaces it.

is3D

static source
A.is3D()

Is3 d.

groundOf

static source
A.groundOf(character)

Ground of.

hullOf

static source
A.hullOf(R, spec)

Hull of.

hullsPending

static source
A.hullsPending()

How many models' heights are still out on the worker; one out past HullWorker.WAIT_MS is worked out here now.

bodyOf

static source
A.bodyOf(fight, character)

A body's measure: tall, and either round with wide (a figure) or its footprint's halves, turn and mask.

Details

A body's measure: tall, and either round with wide (a figure) or its footprint's halves, turn and mask. Shared: do not change it.

reachTo

static source
A.reachTo(fight, x, z, character)

How far a ground point is from a body's outline, in tiles: a footprint's is nothing inside it.

nearPoint

static source
A.nearPoint(fight, x, z, character, out)

The part of a body nearest a ground point, into out as x and z: a footprint's nearest point, a figure's middle.

gap

static source
A.gap(fight, a, b)

The room between one body's middle and another's outline, in tiles.

levelGap

static source
A.levelGap(a, b)

How far apart two bodies stand in height, in tiles.

deep

static source
A.deep()

Whether lines are tested against the world as it is drawn: a 3D map, in a runtime that has the query.

sees

static source
A.sees(fight, a, b)

Whether one unit's eyes reach another's chest: tiles that hide, and on a 3D map the ground, what is built (where it is solid: open air under a roof and beside a post stays open), a shut door and a model in the way.

lineOpen

static source
A.lineOpen(fight, a, fromShare, b, toShare, sight)

Whether the line from one body (a share of its height up) to another's reaches it with nothing of the world between.

Details

Whether the line from one body (a share of its height up) to another's reaches it with nothing of the world between. The line ends at the other's outline: nothing stands inside a body. sight: glass does not stop it.

blowClear

static source
A.blowClear(fight, a, b)

Whether a blow struck from one body's chest reaches another's: nothing of the world between them.

rayWorld

static source
A.rayWorld(ox, oy, oz, dx, dy, dz, far, flat, sight)

How far along a line the world lets it go, at most far: stopped by a tile that hides and, on a 3D map, by the ground, by what is built where it is solid (Reactor3D.worldRay), by a shut door and by a model that stands in the way (a prop, a vehicle: never a unit of the battle, see rayUnits).

Details

How far along a line the world lets it go, at most far: stopped by a tile that hides and, on a 3D map, by the ground, by what is built where it is solid (Reactor3D.worldRay), by a shut door and by a model that stands in the way (a prop, a vehicle: never a unit of the battle, see rayUnits). sight: what is seen through (glass) does not stop it. flat: an aim with no height of its own (a 2D map: tiles only; on a 3D map seen from above, a line that keeps its height over the ground it passes, so walls and models stop it and the ground does not).

props

static source
A.props(fight)

The map's models that are no unit of the battle and stand in a line's way (a prop, a parked vehicle, a bystander's model): each its footprint as tall as the model, measured every half second, not on every line.

overhangs

static source
A.overhangs(hull)

Whether a model's heights (A.buildHull) have open air under its mesh somewhere: under an overhang or between two of its parts.

rayProps

static source
A.rayProps(ox, oy, oz, dx, dy, dz, far, flat)

How far along a line those models let it go, at most far.

Details

How far along a line those models let it go, at most far. flat (an aim with no height of its own): the line keeps its height over the ground it passes, so it meets a model at that height over the model's own cell: one that stands in the way stops it, one that hangs overhead does not.

rayBody

static source
A.rayBody(body, ox, oy, oz, dx, dy, dz, far, flat)

Where a line enters a body, at most far along it; -1 when it misses.

Details

Where a line enters a body, at most far along it; -1 when it misses. A figure is a round post from its feet to its head. Anything else is its footprint as it stands, as tall as its model: the cells the model covers when it says which, else its box. On a flat aim (a 2D map, a pointer on the ground) height does not count.

rayUnits

static source
A.rayUnits(fight, ox, oy, oz, dx, dy, dz, far, team, flat, except)

The nearest unit of team a line passes through, within far (see rayBody).

Details

The nearest unit of team a line passes through, within far (see rayBody). Sets A.rayT to how far along the line its body is entered.

bodies

static source
A.bodies(fight, team)

Who stands where, a side at a time, measured once a frame however many lines are tested against them (every shot in the air, the crosshair, a blast): where each living unit's middle is, its outline and how tall.

roomAt

static source
A.roomAt(fight, unit, character, x, y)

Whether a unit's body has room on a cell: nobody stands there, no big body covers it, and nothing built stands where the body would (a pillar that reaches into the cell, a counter's end).

wantsCapture

static source
A.wantsCapture()

Whether a click should take the mouse first: a look that turns by it, the mouse not yet held, and no refusal just now.

camera

static source
A.camera()

The map's 3D camera, when the map is drawn through one.

cameraMode

static source
A.cameraMode()

Camera mode.

relative

static source
A.relative()

Relative.

muzzle

static source
A.muzzle(character, out)

Where a shot leaves the character: the tip of what it holds, else beside its chest.

shotFrom

static source
A.shotFrom(character, out, flat)

Where a shot starts: the muzzle, when the way to it from the body's own chest is open.

Details

Where a shot starts: the muzzle, when the way to it from the body's own chest is open. A long weapon held against a wall ends beyond the wall's near face; the shot then starts on the body's side of what stands between (out.walled), so it meets the wall and nothing behind it. flat: an aim with no height of its own.

screenOf

static source
A.screenOf(x, y, z)

Screen of.

facing

static source
A.facing(yaw)

The nearest of the four ways a character can face to a yaw in degrees (0 north, 90 east).

land

static source
A.land(fight, unit, targets, kind, itemId, rate, reach, traced)

One action's worth of a blow from unit on targets, landed now through the stock math.

Details

One action's worth of a blow from unit on targets, landed now through the stock math. traced: the way to each target was already found clear (a shot's line, a swing's, a blast's), so it is not asked again.

fire

static source
A.fire(fight, unit, profile, skillId, ox, oy, oz, dx, dy, dz, flat, spreadDegrees, mx, my, mz)

Fires the unit's weapon (or an enemy's bolt) along a line: at once for a bullet, as a thing that flies for the rest.

Details

Fires the unit's weapon (or an enemy's bolt) along a line: at once for a bullet, as a thing that flies for the rest. The line is traced from (ox, oy, oz). A bullet's streak is drawn from (mx, my, mz) when they are given (the player's shot is traced along the eye's own line and drawn from the muzzle), else from where it is traced.

bodyBusy

static source
A.bodyBusy(character)

Whether a character's body is busy with something no attack should cut into (a climb, a pull-up, a ride).

weaponsOf

static source
A.weaponsOf(battler)

The weapons the actor can take in hand: the one equipped, then those in the bag it can equip.

weaponRound

static source
A.weaponRound(battler)

The switching order: the weapons carried in the Database's order, whichever is in hand (a list of its own, not weaponsOf's).

Details

The switching order: the weapons carried in the Database's order, whichever is in hand (a list of its own, not weaponsOf's). Next Weapon steps round it, and the HUD's "2/3" is the held weapon's place in it.

hotbarOf

static source
A.hotbarOf(battler)

The hotbar: the actor's skills other than attack and guard, then the party's items usable in battle; eight at most.

holdAim

static source
A.holdAim(fight, character, on)

The weapon comes up on the line the player aims along (a point ahead that the hold follows), or down again.

knock

static source
A.knock(fight, unit, character, from)

Drives a struck unit a cell back from who struck it, when its body has room on the cell behind.

Details

Drives a struck unit a cell back from who struck it, when its body has room on the cell behind. A big body (a vehicle) is not driven.

windupShow

static source
A.windupShow(fight, battler, character, skillId, frames)

A wind-up shows as the pose its action opens with: the first motion of its sequence, held for the wind-up.

swing

static source
A.swing(fight, st, unit, battler, character, profile, step)

Swing.

swingShow

static source
A.swingShow(fight, battler, character, step)

What a swing looks and sounds like: the weapon's own sequence's motion and sound when it has one, else a lunge.

shotShow

static source
A.shotShow(fight, battler, character)

A shot's sound and flash: the weapon's sequence's sound and muzzle animation when it has them, else the system's.

fallenNear

static source
A.fallenNear(fight, unit, action)

The fallen of its side an action that revives lands on: those lying as near as a friendly action reaches (the nearest, or all of them).

aiOf

static source
A.aiOf(fight, st, unit, character)

Ai of.

struck

static source
A.struck(fight, unit, ai, by)

A unit took a blow: it knows who struck it now, and flinches when it was not already striking.

notices

static source
A.notices(fight, unit, character, other)

Whether an idle unit notices an opponent: in front of it within sight, or near enough to hear, with nothing between.

nearest

static source
A.nearest(fight, unit, character, team, far)

Nearest.

route

static source
A.route(character, x, y, whole)

The way a character can walk from its cell toward (x, y) round what stands between: the steps (2, 4, 6, 8) into A.routes.steps, and how many there are (0: no way nearer than it stands).

Details

The way a character can walk from its cell toward (x, y) round what stands between: the steps (2, 4, 6, 8) into A.routes.steps, and how many there are (0: no way nearer than it stands). It ends on the cell beside the goal, or on the nearest cell to it the search came to. Each step is one the character's own walking rule allows now; at most A.ROUTE_CELLS cells are looked at, nearest the goal first. whole: only a way that comes out beside the goal counts (a way round something); one that merely ends nearer does not.

choose

static source
A.choose(fight, unit, battler, ai)

What the unit will do next and how near it must stand: its action patterns (an actor its skills) decide.

wayClear

static source
A.wayClear(fight, ai, from, to)

Whether the blow a unit has chosen has a clear way to its target: a bolt's line from where it leaves the weapon, a blade's and a skill's from chest to chest (glass stops both; a look passes it).

Details

Whether the blow a unit has chosen has a clear way to its target: a bolt's line from where it leaves the weapon, a blade's and a skill's from chest to chest (glass stops both; a look passes it). A skill that needs no line (its note says <los: no>) always has.

waitsForLead

static source
A.waitsForLead(fight, st, unit, character, ai, player)

Waits for lead.

climbSpots

static source
A.climbSpots(to)

Every way up near a target standing above the ground: cells from which a ledge within reach or a ladder leads to its height or under it (an eave under the ridge it stands on), with the way to face there.

Details

Every way up near a target standing above the ground: cells from which a ledge within reach or a ladder leads to its height or under it (an eave under the ridge it stands on), with the way to face there. Dear (it asks the edge query round the target), so it is kept until the target changes cell.

climbTo

static source
A.climbTo(fight, st, character, to)

The way up a unit should take to a target above it: the spot on its own level nearest the two of them, or null.

climbPick

static source
A.climbPick(known, character)

Climb pick.

attackersOn

static source
A.attackersOn(fight, st, targetId)

How many units are winding up or striking at a unit right now.

strike

static source
A.strike(fight, st, unit, character, battler, ai)

The wind-up is over: the blow, the shot or the skill.

seen

static source
A.seen(fight, st, unit, character)

Seen.

tracer

static source
A.tracer(x0, y0, z0, x1, y1, z1)

A shot that lands at once: a streak from the muzzle to where it struck, gone in a few frames.

burst

static source
A.burst(x, y, z)

Burst.

impact

static source
A.impact(x, y, z, dx, dy, dz)

A spark and a mark where a shot going (dx, dy, dz) met the world at (x, y, z): the mark half sunk in what it struck, the spark just off it.

cameraBodies

static source
A.cameraBodies(fight)

What a body is to the battle's camera: every unit but the player's own and every other character standing on the map, each as its model's turned footprint from its feet to its head (what of that footprint is filled where the model carries a collision mask); and scenery (a tree, a cart) only where it carries one: a tree is its trunk, not the box round its crown.

Details

What a body is to the battle's camera: every unit but the player's own and every other character standing on the map, each as its model's turned footprint from its feet to its head (what of that footprint is filled where the model carries a collision mask); and scenery (a tree, a cart) only where it carries one: a tree is its trunk, not the box round its crown. The list is made again a few times a second, never per frame; where each stands is read as it is used.

cameraBodyReach

static source
A.cameraBodyReach(fight, from, to, length)

How far along the way from from (toward to, length tiles) the first body stands, or length when none does.

Details

How far along the way from from (toward to, length tiles) the first body stands, or length when none does.

shoulderCamera

static source
A.shoulderCamera(fight, pivot, right, back, side, far, out)

Where the over-the-shoulder camera stands.

Details

Where the over-the-shoulder camera stands. pivot is the point over the player it turns about, right and back the unit ways to the side and away from where it looks (THREE vectors), side and far how far it wants to be each way. The side first, then the way back from there: each is as long as the world leaves it (Reactor3D.cameraArm: ground, walls, tall shapes, shut doors, at once, so the picture is never the inside of a wall), the way back also no longer than the first body on it, than what stands between the camera and the player, built or a body, or than a door swinging shut on it (eased: the camera is in none of these), and each grows back slowly. Close in, the camera tucks behind the head rather than hanging out to the side of it. Fills out (x, y, z).

lookToNear

static source
A.lookToNear(fight, st, look, camera)

Look to near.

hookShake

static source
A.hookShake()

The stock screen shake slides the whole picture sideways, which over a 3D view shows the edge of the canvas as a band.

Details

The stock screen shake slides the whole picture sideways, which over a 3D view shows the edge of the canvas as a band. In a battle seen from the shoulder or through the eyes a shake (a blow taken, an event's Shake Screen) is the camera's own instead.

hookPhysics

static source
A.hookPhysics()

A unit that climbed after its target comes down as the party does: it steps off a roof's edge when the drop is safe.

hookStage

static source
A.hookStage()

The stage's flinch pins a unit to its cell for a moment: never one the player is walking.