src/battle/battle_debug.c
Debug: the parameter sets, the message viewer and the battle test menu. More…
Included by battle.c.
Macros
| Name | Description | |
|---|---|---|
#define | DEBUG_SECOND_RANGE_FIRST | The first message of the viewer's second range. |
#define | DEBUG_LARGE_STEP 10 | How far R and L, or Up and Down in the battle test's chooser, step through a list at once. |
#define | DEBUG_SAMPLE_NUMBER 999 | The number a browsed message's number placeholder shows. |
#define | DEBUG_PARAMETER_SET_LAST_ROW 332 | The last row of DebugParameterSets; the scan reports a missing parameter set past it. |
#define | DEBUG_VIEW_LIMIT | The highest message index the viewer reaches. |
#define | DEBUG_FIRST_ENCOUNTER 257 | The encounter the debug battle starts with (two or three Kobolds), and the Djinn tutorial's: rows of formations.c. |
#define | DJINN_TUTORIAL_ENCOUNTER 28 |
Functions
| Name | Description | |
|---|---|---|
Sint32 | btDebugParamSetLoad (Sint32 set) | Debug: replaces the party with parameter set number set, each member at its level with its Djinn, abilities and equipped items. |
void | btDebugBattleViewMessages (void) | Debug: a message viewer that never returns, showing one message at a time with sample arguments. |
void | btDebugBattleRunMenu (void) | Debug: the battle test menu, which never returns. |
Description
Debug: the parameter sets, the message viewer and the battle test menu. Part
of battle.c.
Macros in detail
DEBUG_SECOND_RANGE_FIRST
#define DEBUG_SECOND_RANGE_FIRST
The first message of the viewer's second range.
Referenced by btDebugBattleViewMessages().
Definition at line 7 of file battle_debug.c.
DEBUG_LARGE_STEP
#define DEBUG_LARGE_STEP 10
How far R and L, or Up and Down in the battle test's chooser, step through a list at once.
Referenced by btDebugBattleRunMenu() and btDebugBattleViewMessages().
Definition at line 17 of file battle_debug.c.
DEBUG_SAMPLE_NUMBER
#define DEBUG_SAMPLE_NUMBER 999
The number a browsed message's number placeholder shows.
Referenced by btDebugBattleViewMessages().
Definition at line 19 of file battle_debug.c.
DEBUG_PARAMETER_SET_LAST_ROW
#define DEBUG_PARAMETER_SET_LAST_ROW 332
The last row of DebugParameterSets; the scan reports a missing parameter set
past it.
Referenced by btDebugParamSetLoad().
Definition at line 23 of file battle_debug.c.
DEBUG_VIEW_LIMIT
#define DEBUG_VIEW_LIMIT
The highest message index the viewer reaches.
Referenced by btDebugBattleViewMessages().
Definition at line 125 of file battle_debug.c.
DEBUG_FIRST_ENCOUNTER
#define DEBUG_FIRST_ENCOUNTER 257
The encounter the debug battle starts with (two or three Kobolds), and the
Djinn tutorial's: rows of formations.c.
Referenced by btDebugBattleRunMenu().
Definition at line 234 of file battle_debug.c.
DJINN_TUTORIAL_ENCOUNTER
#define DJINN_TUTORIAL_ENCOUNTER 28
Referenced by btDebugBattleRunMenu().
Definition at line 235 of file battle_debug.c.
Functions in detail
btDebugParamSetLoad
Sint32 btDebugParamSetLoad(Sint32 set)
Debug: replaces the party with parameter set number set, each member at its level with its Djinn, abilities and equipped items. Returns 1 when the table ends before that set.
References DebugParameterSets, gmDjinnGiveStub(), gmDjinnSetStub(), gmInventoryAddItemStub(), gmInventoryEquipStub(), gmInventoryRemoveStub(), gmPartyAddMemberStub(), gmPartyRemoveMemberStub(), gmUnitGetStub(), gmUnitLearnPsynergyStub(), gmUnitLevelUpToStub() and Sint32.
Referenced by btDebugBattleRunMenu() and scBattleArenaChooseDebugParamSet().
Definition at line 28 of file battle_debug.c.
btDebugBattleViewMessages
void btDebugBattleViewMessages(void)
Debug: a message viewer that never returns, showing one message at a time with sample arguments. Left and Right step it, L and R by ten, Up, Down and B pick the range, and A shows it again.
References gmUnitGetStub(), MainRoutineStateWork, mnMessageAllTypedStub(), mnMessageArgumentClearAllStub(), mnMessageArgumentPushStub(), mnMessageDecodeRawUnboundedStub(), mnMessageOpenWindowStub(), mnWindowCloseAllStub(), mnWindowCloseStub(), mnWindowSystemInitFieldStub(), PerRepeat, Sint32, sySoundPlayStub() and sySynch().
Referenced by btDebugBattleRunMenu().
Definition at line 132 of file battle_debug.c.
btDebugBattleRunMenu
void btDebugBattleRunMenu(void)
Debug: the battle test menu, which never returns. It fights the first encounter again and again with auto battle on, unless Down is held at the start to open the chooser of encounter and parameter set.
References btDebugBattleViewMessages(), btDebugParamSetLoad(), btDebugSelectNoOperation(), btRun(), gmFlagClearStub(), gmFlagSetStub(), gmMainRoutineStateInitDefaultsStub(), gmUnitCalculateStub(), MainRoutineStateWork, PerData, PerRepeat, Sint32, syHeapInit(), syInitEvent(), syPrintClear(), sySynch(), syVRAMCacheReset() and syWindowLoadGraphics().
Definition at line 240 of file battle_debug.c.