Skip to Content
The Alchemy Project

include/battle

Guide: Battle Engine

Files

FileDescription
ability_staging.hHow each ability is staged in battle: the staging and effect tables (ability_staging.c) and the values of BATTLE_ACTION_RUN.staging and battleEffect.
battle.hThe battle module's functions and globals, as the other modules see them: its tables, types and constants, then its functions, grouped by the part of battle.c that holds them.
battle_action.hA battle's battle objects and sprites, each unit's command and action, and the spoils.
battle_action_run.hBATTLE_ACTION_RUN, an action planned for its targets: the hits, criticals and multipliers rolled.
battle_actor.hBATTLE_ACTOR, the view of ACTOR one battle function gives a unit its sprites through.
battle_camera.hThe battle camera, its view state and the battle background's affine state, and the stack state an action's staging keeps for its battle effect.
battle_effect_params.hBATTLE_EFFECT_PARM, the command an effect's caller, dispatcher and handlers share, and the macros that define effect kinds.
battle_effect_state.hBATTLE_EFFECT_STATE, the running battle effect's state, and its sprites.
battle_random.hBattleRandomSeed, the battle's random seed.
battle_side.hWhich units are in a battle, and the Djinn recovery list.
battle_sprites.hSummons and the battle sprite definitions of the enemies.
battle_state.hBATTLE_STATE, the battle's own state, and the battle message window's state.
battle_unit.hUnit, a party member's or enemy's battle state, with the elements, abilities and actions it uses.
blitter.hHow battle effects draw a picture onto their canvas: the blitter btEffectBuildBlitter builds, the edges it clips at, how it mirrors and how its pixels combine with the canvas's.
debug_parameter_set.hThe debug parameter sets.
first_strike.hWho strikes first as a battle opens.
formations.hThe enemy formations.
playback_queue.hThe playback queue: the commands btPlaybackPush queues and the playback phases that play them.
range_falloff.hThe battle calculation tables: hit chances, HP and PP damage and recovery.
stubs.hThe battle module's stub calls: running a battle, its camera and background, and how its units move.
weapon_kind.hThe kinds of weapon a party member's attack shows, and how BattleUnitWeaponKinds packs one with its item.

On this page