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.
Sint32bg1ScrollModeBATTLE_BACKGROUND_FIXED has the camera scroll BG1 whatever the mode, as the battle effects' canvas layers on BG1 set it.
Sint32busyWhile set, an effect owns BG1's scroll and the camera leaves it.
Sint32keepRangeWhile set, the camera update leaves the background's range as it is; 0 sets it each tick.
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(), btCameraAdjustByShoulderKeys(), btCameraSetCommandView(), btCameraSetRange(), btCameraUpdate(), btEffectOpenCanvasLayer(), btEffectRunAtalanta(), btEffectRunBackgroundFadeIn(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunGeode(), btEffectRunHaures(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunNeptune(), btEffectRunOdyssey(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectRunThor(), btEffectRunUlysses(), btEffectRunZagan(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer(), btEffectStartElementStreaks(), btIrisChangeBackdrop(), btIrisRestoreBattle(), btRun(), btStagingDispatchAction(), btStagingRunAttack(), btStagingRunFlee(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunPsynergyCast() and btTransitionRun().

Definition at line 41 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.

bg1ScrollMode

Sint32 bg1ScrollMode

BATTLE_BACKGROUND_FIXED has the camera scroll BG1 whatever the mode, as the battle effects' canvas layers on BG1 set it.

busy

Sint32 busy

While set, an effect owns BG1's scroll and the camera leaves it.

keepRange

Sint32 keepRange

While set, the camera update leaves the background's range as it is; 0 sets it each tick.

unusedAfterKeepRange

Sint32 unusedAfterKeepRange[2]

Cleared when a battle starts; nothing reads them.