Isle-Slingers/js/physics/abilities/agents.md

13 lines
597 B
Markdown
Raw Permalink Normal View History

# js/physics/abilities/ — agents.md
Part of the modularization pass. Module map: `MODULES.md`; runtime model: `architecture.md`.
Installs into `P`: launch, triggerAbility.
- `launch(g, vx, vy)` performs the turn transition (aiming -> flying, launched
counter, active-bird advance on settle).
- `triggerAbility(g)` implements the three mid-flight moves (fury / dive /
quake) keyed off the active bird's type and `ABILITY_CD`. Each slinger's move
is pinned by the "abilities" test arm (distinct, usable, no-op when
unavailable).
- Consumes: activeBird, aimVector, MATERIALS, BIRD_TYPES.