include/battle/playback_queue.h
The battle event queue: the names, numbers, messages, hits and defeats an action queues for its playback to show in order.
Included by battle_internal.h and battle_state.h.
Structures
| Name | Description | |
|---|---|---|
struct | BATTLE_PLAYBACK_QUEUE | The battle event queue: up to 64 events, each an opcode (enum BATTLE_PLAYBACK_COMMAND) and one operand, in the order they play. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { BATTLE_PLAYBACK_CAPACITY } | The most events a playback queues (BATTLE_PLAYBACK_STATE's opcodes and operands). |
enum | BATTLE_PLAYBACK_PHASE { BATTLE_PLAYBACK_PHASE_IDLE, BATTLE_PLAYBACK_PHASE_RESOLVE_TA … } | BATTLE_PLAYBACK_STATE.phase: how far btPlaybackRun has got through the plan's targets. |
enum | BATTLE_PLAYBACK_COMMAND { PLAYBACK_UNIT_NAME, PLAYBACK_NUMBER, PLAYBACK_ITEM_NAME, PLA … } | The battle events btPlaybackPush queues, each with one operand, for btPlaybackRun (or btPlaybackRunAll) to play in order. |
Description
The battle event queue: the names, numbers, messages, hits and defeats an action queues for its playback to show in order.
Enumerations in detail
anonymous enum
enum { BATTLE_PLAYBACK_CAPACITY }
The most events a playback queues (BATTLE_PLAYBACK_STATE's opcodes and
operands).
| Enumerator | Value | Description |
|---|---|---|
BATTLE_PLAYBACK_CAPACITY | 64 |
Definition at line 12 of file playback_queue.h.
BATTLE_PLAYBACK_PHASE
enum BATTLE_PLAYBACK_PHASE
BATTLE_PLAYBACK_STATE.phase: how far btPlaybackRun has got through the plan's
targets.
| Enumerator | Value | Description |
|---|---|---|
BATTLE_PLAYBACK_PHASE_IDLE | 0 | paused until the effect resumes it |
BATTLE_PLAYBACK_PHASE_RESOLVE_TARGET | 1 | resolves the next target's events |
BATTLE_PLAYBACK_PHASE_DISPATCH | 2 | plays the queued events in order |
BATTLE_PLAYBACK_PHASE_READY | 4 | every target has been played |
Definition at line 19 of file playback_queue.h.
BATTLE_PLAYBACK_COMMAND
enum BATTLE_PLAYBACK_COMMAND
The battle events btPlaybackPush queues, each with one operand, for
btPlaybackRun (or btPlaybackRunAll) to play in order. The names, numbers and
messages build what the player reads: the arguments first, then the message
that shows them.
| Enumerator | Value | Description |
|---|---|---|
PLAYBACK_UNIT_NAME | 0 | a unit's name for the next message |
PLAYBACK_NUMBER | 1 | a number for the next message |
PLAYBACK_ITEM_NAME | 2 | an item's name for the next message |
PLAYBACK_ABILITY_NAME | 3 | an ability's name for the next message |
PLAYBACK_MESSAGE | 4 | a message, waiting for the player |
PLAYBACK_MESSAGE_NO_WAIT | 5 | a message, going straight on |
PLAYBACK_MARK | 6 | sets RamHeapSlots->battleMsg->marked |
PLAYBACK_CLEAR_ARGUMENTS | 7 | forgets the names and numbers pushed |
PLAYBACK_HIT | 8 | the unit flinches and flashes |
PLAYBACK_DEFEAT | 9 | the unit falls; an enemy fades out |
PLAYBACK_DRAW_STATUS | 10 | redraws the party's status |
PLAYBACK_REFRESH_UNIT | 11 | the unit's status icons, colour, pose |
PLAYBACK_REMOVE_UNIT | 12 | an enemy leaves the battle |
PLAYBACK_DJINN_BONUS | 13 | later defeats give the Djinn bonus |
PLAYBACK_SOUND | 14 | plays a sound |
PLAYBACK_BLOW_AWAY | 15 | the unit leaves the lists, as one that flees |
Definition at line 49 of file playback_queue.h.