Skip to Content
The Alchemy Project

struct BATTLE_BACKGROUND_STATE

The HEAP_SLOT_BATTLE_BACKGROUND heap slot: the yaw the battle camera eases toward and the ticks left to ease it, and how the battle background is shown.

Declared in battle_camera.h.

Fields

NameDescription
Sint32targetYaw1/65536 turns.
Sint32ticksTicks left to ease the yaw, a sixteenth a tick.
Sint32modeBATTLE_BACKGROUND_MODE.
Sint32secondModeBATTLE_BACKGROUND_FIXED also sets BG1's scroll whatever the mode; the battle effects' canvas layers set it.
Sint32busyWhile set, btCameraSetRange leaves BG1's scroll.
Sint32keepRange0 lets the camera update set the background's range each tick; 1 for a critical hit's zoom and once a turn's view is set.
Sint32unusedAfterKeepRange [2]Cleared when a battle starts; nothing reads them.

Description

The HEAP_SLOT_BATTLE_BACKGROUND heap slot: the yaw the battle camera eases toward and the ticks left to ease it, and how the battle background is shown.

struct BATTLE_BACKGROUND_STATE

Referenced by btAutoBattleRunAction(), btAutoBattleRunAttackOrItem(), btAutoBattleRunPsynergy(), btBackgroundInit(), btBackgroundLoad(), btBackgroundSetMode(), btBackgroundShowZoomedPage(), btCameraSetCommandView(), btCameraSetRange(), btCameraUpdate(), btEffectHideBg1AndRestoreBackdrop(), btEffectOpenCanvasLayer(), btEffectRunAtalanta(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectRunThor(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer(), btRun(), btStagingDispatchAction(), btStagingRunAttack(), btStagingRunFlee(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunPlainAttack(), btStagingRunPsynergyCast() and btTransitionRun().

Definition at line 50 of file battle_camera.h.

Fields in detail

targetYaw

Sint32 targetYaw

1/65536 turns.

ticks

Sint32 ticks

Ticks left to ease the yaw, a sixteenth a tick.

mode

Sint32 mode

BATTLE_BACKGROUND_MODE.

secondMode

Sint32 secondMode

BATTLE_BACKGROUND_FIXED also sets BG1's scroll whatever the mode; the battle effects' canvas layers set it.

busy

Sint32 busy

While set, btCameraSetRange leaves BG1's scroll.

keepRange

Sint32 keepRange

0 lets the camera update set the background's range each tick; 1 for a critical hit's zoom and once a turn's view is set.

unusedAfterKeepRange

Sint32 unusedAfterKeepRange[2]

Cleared when a battle starts; nothing reads them.