Skip to Content
The Alchemy Project

struct BATTLE_PLAYBACK_STATE

The battle event queue and the state of its playback.

Declared in battle_state.h.

Fields

NameDescription
BATTLE_PLAYBACK_QUEUEqueue
Sint32phaseBATTLE_PLAYBACK_PHASE, or a message phase
Sint32eventIndexthe next queued event to play
Sint32timerticks to wait
MENU_SPRarrowthe advance arrow
Sint32arrowResourcethe arrow's resource entry; -1 until it is shown
Sint32unitIdthe unit of the hit or defeat being played
Sint16pendingSoundhit sound (an SE_ id), played on the next hit
Sint16keepPendingSoundwhile nonzero, a resumed phase keeps pendingSound
Sint32djinnBonusPLAYBACK_DJINN_BONUS: later kills cycle colours & cry

Description

The battle event queue and the state of its playback.

struct BATTLE_PLAYBACK_STATE

Referenced by btPlaybackGrantDjinnBonus(), btPlaybackReset(), btPlaybackRun(), btPlaybackRunAll(), btPlaybackSchedulePhase(), btPlaybackStart() and btPlaybackWaitForReady().

Definition at line 17 of file battle_state.h.

Fields in detail

queue

BATTLE_PLAYBACK_QUEUE queue

phase

Sint32 phase

BATTLE_PLAYBACK_PHASE, or a message phase

eventIndex

Sint32 eventIndex

the next queued event to play

timer

Sint32 timer

ticks to wait

arrow

MENU_SPR arrow

the advance arrow

arrowResource

Sint32 arrowResource

the arrow's resource entry; -1 until it is shown

unitId

Sint32 unitId

the unit of the hit or defeat being played

pendingSound

Sint16 pendingSound

hit sound (an SE_ id), played on the next hit

keepPendingSound

Sint16 keepPendingSound

while nonzero, a resumed phase keeps pendingSound

djinnBonus

Sint32 djinnBonus

PLAYBACK_DJINN_BONUS: later kills cycle colours & cry