struct BATTLE_PLAYBACK_STATE
The battle event queue and the state of its playback.
Declared in battle_state.h.
Fields
| Name | Description | |
|---|---|---|
BATTLE_PLAYBACK_QUEUE | queue | |
Sint32 | phase | BATTLE_PLAYBACK_PHASE, or a message phase |
Sint32 | eventIndex | the next queued event to play |
Sint32 | timer | ticks to wait |
MENU_SPR | arrow | the advance arrow |
Sint32 | arrowResource | the arrow's resource entry; -1 until it is shown |
Sint32 | unitId | the unit of the hit or defeat being played |
Sint16 | pendingSound | hit sound (an SE_ id), played on the next hit |
Sint16 | keepPendingSound | while nonzero, a resumed phase keeps pendingSound |
Sint32 | djinnBonus | PLAYBACK_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