Namespace in reactor_fight_tactical.js

Hints

9 public functions in 4 groups · show internal (_) functions

A Tactical battle on a 2D map.

Quick Reference

Getting Information 2

idOf() What a tip's showings are counted under: its words and its stage (the same words teach a key at two stages, e…
textOf() A tip as the line shows it now, or "" when one of its controls has no key or button.

Actions 2

reset() The teaching starts over: every tip is due its times again.
show() A tip goes on the line (or none: the plain stage line).

Updating & Drawing 1

update() Once a frame: a new state brings its next tip, a state the player stays in brings another every F.Hints.FRAME…

Other 4

enabled() Enabled.
seen() How often each tip has been shown (by idOf), kept with the save.
choose() The next tip for the state the battle is in: the one shown least so far, never the one just shown; none when…
covered() Whether the HUD's line says something else than the tip now: why the highlighted command cannot be chosen, or…

Getting Information

idOf

static source
Hints.idOf(tip)

What a tip's showings are counted under: its words and its stage (the same words teach a key at two stages, each with its own times).

textOf

static source
Hints.textOf(tip)

A tip as the line shows it now, or "" when one of its controls has no key or button.

Actions

reset

static source
Hints.reset()

The teaching starts over: every tip is due its times again.

show

static source
Hints.show(fight, hint, tip)

A tip goes on the line (or none: the plain stage line).

Details

A tip goes on the line (or none: the plain stage line). Being put there counts for nothing: update counts it once it has been read.

Updating & Drawing

update

static source
Hints.update(fight)

Once a frame: a new state brings its next tip, a state the player stays in brings another every F.Hints.FRAMES, and the tip on the line is counted as shown when it has stood there F.Hints.READ frames in all (once a showing: hint.read keeps the frames of a tip not yet counted, by idOf).

Other

enabled

static source
Hints.enabled()

Enabled.

seen

static source
Hints.seen()

How often each tip has been shown (by idOf), kept with the save.

choose

static source
Hints.choose(fight, hint)

The next tip for the state the battle is in: the one shown least so far, never the one just shown; none when all have had their times.

covered

static source
Hints.covered(fight, hint, state)

Whether the HUD's line says something else than the tip now: why the highlighted command cannot be chosen, or why the cell aimed at cannot be struck.

Details

Whether the HUD's line says something else than the tip now: why the highlighted command cannot be chosen, or why the cell aimed at cannot be struck. A tip nobody can see is not being read.