1#ifndef ALCHEMY_BATTLE_DISPLAY_H
2#define ALCHEMY_BATTLE_DISPLAY_H
struct BattleCamera * gCameraWork
BattleEffectArgument, the command an effect's caller, dispatcher and handlers share,...
A battle's objects and sprites, each unit's command and action record, and the spoils.
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
Public interfaces to the engine's code banks.
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
The battle background's scanline work in heap slot 10: two pages of per-line BG2CNT values,...
u8 unk04[12]
not named by TBS code
u32 page
the page of lines shown; the other one is built
struct BattleAffine affine
The battle background's affine parameters and reference point, copied whole to the BG2PA registers.
The battle background's work slot as the background code reads it: its display mode (2 draws it as an...
s32 mode
2 draws the affine plane; 1 sets BG1's scroll too
s32 busy
while set, BattleCamera_SetRange leaves BG1's scroll
u8 unk00[8]
BattlePresentationTransition's targetYaw and frames.
s32 secondMode
1 also sets BG1's scroll; one effect sets it
The battle camera: its eye, the focus it turns about, and its pitch, yaw and distance.
s32 distance
eye to focus, 16.16 fixed-point pixels
s32 * followPos
when set, the focus followed instead of pos
s32 pos[3]
the focus, 16.16 fixed-point pixels
s32 eye[3]
The eye, 16.16 fixed-point pixels: written each frame distance behind the focus along the turned view...
u8 unk38[20]
not named by TBS code
u8 unk24[16]
not named by TBS code
s32 unk18
cleared beside followPos; not read by name in TBS
The command shared by an effect's caller, dispatcher and handlers.
One action, as BattleCommand_BuildPlan lays it out for BattleTargetExec to apply target by target.
The battle background's work slot as the camera reads it: the yaw the camera eases toward and the fra...
s32 unk18
cleared when the battle starts; not read by name in TBS
u8 unk08[8]
BattleBackgroundView's mode and secondMode.
s32 frames
frames left to ease the yaw, a sixteenth a frame
s32 flag
0 lets the camera update set the background's range each frame; 1 for a critical hit's zoom and once ...
s32 unk1c
cleared when the battle starts; not read by name in TBS
s32 active
BattleBackgroundView's busy, at the same offset.
s32 targetYaw
1/65536 turns
The effect updates its command while the presentation keeps animation state.
struct BattleEffectArgument effect
u8 savedAnimationParameters[8][4]
Each target's animation entries' param, saved before the effect.
The integer types, TRUE, UNUSED and the fixed-address macros.