include/debug/debug.h
What the debug menus and the debug rooms share: the warp menu's presets, the shortcut grid's abilities, the palette editor's swatches and the steps the debug choosers take.
Included by battle_internal.h, battle_effect_internal.h, level.c, shop_test.c, field_engine_internal.h, field_psynergy_internal.h, script_commands_internal.h, menu_internal.h, shop_internal.h, debug_tables.c and window_internal.h.
Structures
| Name | Description | |
|---|---|---|
struct | DEBUG_WARP_PRESET | One row of the debug warp menu: its name and what choosing it does. |
Macros
| Name | Description | |
|---|---|---|
#define | DEBUG_BROWSER_ROW_STEP 10 | The debug rooms' item choosers (dbIncreaseItemAndLevelSelectItem, dbShopTestSelectItem): Right and Left move ten numbers. |
#define | DEBUG_BROWSER_PAGE_STEP 30 | The same choosers' R and L move thirty. |
#define | DEBUG_LARGE_STEP 10 | The step the debug menus take on L and R: ten scenes, entrances, flag pages, portraits or sound numbers (window.c's choosers); the battle test chooser (battle_debug.c) takes it on Up and Down, ten encounters. |
Functions
| Name | Description | |
|---|---|---|
void | mnDebugWarpJupiter (void) | The warp menu's handlers, one a row of DebugWarpPresets, each named for its row's label ("0:Jupiter" to "8:Kaoru Special1"). |
void | mnDebugWarpArafura2 (void) | Preset 1, "Arafura2": Briggs caught and the mayor at the ship, Alhafra's mast still blocking it; Felix holds the Large Bread. |
void | mnDebugWarpEnergySample (void) | Preset 2, "Energy Sample": does nothing. |
void | mnDebugWarpArafura3 (void) | Preset 3, "Arafura3": as Arafura2 with the mast cleared. |
void | mnDebugWarpChampa2 (void) | Preset 4, "CHAMPA2": the Trident's three prongs, and Briggs sailed from Alhafra. |
void | mnDebugWarpKaoruSpecial4 (void) | Preset 5, "Kaoru Special4": Moapa met in Shaman Village, his tests passed and beaten on the Trial Road. |
void | mnDebugWarpKaoruSpecial3 (void) | Preset 6, "Kaoru Special3": the Mars beacon lit and Prox's clan met and grateful, saving barred. |
void | mnDebugWarpKaoruSpecial2 (void) | Preset 7, "Kaoru Special2": to the Mars Lighthouse aerie. |
void | mnDebugWarpKaoruSpecial1 (void) | Preset 8, "Kaoru Special1": to the Mars Lighthouse's star room, where the battle with the Flame Dragons returns the party. |
void | mnDebugFlagEditorDrawTable (Sint32 window, Sint32 startFlag) | Draws one page of 256 flags as sixteen rows of hexadecimal labels and bits. |
Sint32 | mnDebugFlagEditorHandleInput (Sint32 window, Sint32 *page, Sint32 *cursor) | Moves within the flag grid, changes pages, or toggles the selected flag. |
Variables
| Name | Description | |
|---|---|---|
extern const Uint8 | DebugPaletteSwatchTiles [] | The palette editor's swatch tiles, compressed; it decompresses them to tile 208 of character block 0, one tile a colour. |
extern const DEBUG_WARP_PRESET | DebugWarpPresets [] | The debug warp menu's nine rows (debug_tables.c). |
extern const Sint16 | DebugShortcutAbilities [4][9] | The abilities the debug shortcut grid offers, by column and row. |
Description
What the debug menus and the debug rooms share: the warp menu's presets, the shortcut grid's abilities, the palette editor's swatches and the steps the debug choosers take.
Macros in detail
DEBUG_BROWSER_ROW_STEP
#define DEBUG_BROWSER_ROW_STEP 10
The debug rooms' item choosers (dbIncreaseItemAndLevelSelectItem,
dbShopTestSelectItem): Right and Left move ten numbers.
Referenced by dbIncreaseItemAndLevelSelectItem() and dbShopTestSelectItem().
Definition at line 35 of file debug.h.
DEBUG_BROWSER_PAGE_STEP
#define DEBUG_BROWSER_PAGE_STEP 30
The same choosers' R and L move thirty.
Referenced by dbIncreaseItemAndLevelSelectItem() and dbShopTestSelectItem().
Definition at line 37 of file debug.h.
DEBUG_LARGE_STEP
#define DEBUG_LARGE_STEP 10
The step the debug menus take on L and R: ten scenes, entrances, flag pages,
portraits or sound numbers (window.c's choosers); the battle test chooser
(battle_debug.c) takes it on Up and Down, ten encounters.
Referenced by btDebugBattleRunMenu(), mnDebugBrowserPortraits(), mnDebugFlagEditorHandleInput(), mnDebugSceneSelectHandleRowInput() and mnDebugSoundTestRun().
Definition at line 41 of file debug.h.
Variables in detail
DebugPaletteSwatchTiles
extern const Uint8 DebugPaletteSwatchTiles[]
The palette editor's swatch tiles, compressed; it decompresses them to tile 208 of character block 0, one tile a colour.
Referenced by fdPaletteEditorRun().
Definition at line 13 of file debug.h.