Entry 547
Bosses as defs: Magus made of systems, its wave, leaves, laser, needles and its own; the body read through the field
26mbattle
Files16 in 9 directories
magus.rsskeith.rsgorre.rspart.rsdefs.rscrates/piney-battle/src/boss/magus/leaf.rstests.rscrates/piney-battle/src/boss/systems/mod.rswave.rscrates/piney-battle/src/boss/gorre/brother.rscrates/piney-battle/src/boss.rscrates/piney-battle/examples/battle_probe/magus.rscrates/piney-game/src/session/tests/docs/engine/boss-magus.mdboss.mdplans/rust-cleanup.mdSection 2's "Bosses as defs and systems": Mutation's ccBoss03 and its
twelve ccBoss03Leafs on the runner (worklog 540), after Gorre (546).
The def
MAGUS's systems are its wave, its leaves, its laser, its needles' pass
and its own:
magus::Leaves: the leaves' characters (slaveCtrl[0]), each leaf a boss of its own lent for the body's frame (Lend,Return; one missing is skipped, as before), and where each hangs on the body (Early:OBJ_ex31leafNNthroughCx::field, which a leaf'sInitreads).ActionisSlave(),Latelets the leaves' holds go. It draws the leaves as parts and hides a dropped leaf's objects and light outside the Epitaph and the grow.magus::Laser: the twelve shocks andm_shockIdx, their objects' places and where each beam meets the ground (Early: read off the laser clip one step on, as before), the beams drawn inPreDraw(the laser's third step ofccBoss03::PreDrawAnm).magus::Needles: the effect manager's pass, whose only own lives are the needles' (ccBossEffNeedle).magus::Magus: the rest, asccBoss03::ccBoss03starts it.Earlycounts the attack's wait,Moveis its own (ccBoss03::Move, the push count),PreDrawthe clip forward (not in the laser's second step),LateCalcCameraand the PP count; its draw hides its images going to the centre.
order: Leaves.Early, Laser.Early, Leaves.Lend, Needles.Pass, Magus.Early,
Live[Prologue, TickStop, Magus.Think, LockParty, Magus.Move,
Magus.PreDraw, Laser.PreDraw, Draw, Leaves.Action, ClearHold],
Magus.Late, ClearHold, Leaves.Late, Leaves.Return
affect: Magus.Affect
The PP count runs before the holds are let go now (it was after): it
reads and writes only the boss's gauge count, which no hold touches.
LEAF is its own system (magus::leaf::Leaf, its Affect and its draw:
its marker's place and its burst), lent with Part<T>.
The runner
Hook::Early(what aMaindoes beforeccBoss::Main's) andHook::Move(a class's ownMove) are new.Othersholds the siblings as a list:Others::take::<T>()keeps one for the whole step, so a step holds several (Magus'sThinkits leaves, laser and wave); Gorre's two-at-once accessor went for it.- A system's draw sees the boss's other systems (
all: &Systems):Leavesreads Magus'sm_bEpitaphthrough it.
The field, not members
The probe and the tests no longer write the body's places into Magus's
members: the probe's field (Body) answers node with the case's leaf
places, clip_entries with its shock places, and line shock by shock
with the frame's hits; the unit tests' field (Hangs) hangs the leaves
in a row. MagusData, Class::Magus, Class::MagusLeaf and
BossData's field are gone; the tables are views of the volume's
tables::combat (magus_*).
Checks
- The pins: 290 recorded
battle_probecalls replayed against the new release probe, none differ. - Against the game: the eleven
test_battle_*_rson their volumes,test_boss_effect_rson all four,test_bosscam_rson Infection, Mutation and Quarantine. - The golden boss shots as at worklog 537, and
magus_shots(126) andmagus_flash_shots(77) as at worklog 546: every PNG byte for byte. - piney-battle's, piney-world's, piney-effect's, piney-data's and piney-event's tests, piney-game's suite (release).
piney-gen gen --check, clippy with all features (too_many_arguments150, nodead_codeallows), fmt,cairns check,tools/docs.py check.
nothing this step opened; Kyvia, Innis and Corbenik remain to convert, then Class, each_class! and BossData out.