|
resonance 1.0.1
|


Go to the source code of this file.
Classes | |
| struct | StageListEntry |
| One level in a stage's list. More... | |
| struct | ArenaListEntry |
| One arena in the solo or the local arena table. More... | |
Functions | |
| bool | operator< (const StageListEntry &left, const StageListEntry &right) |
| Order two stage entries by mOrder. | |
| bool | operator< (const ArenaListEntry &left, const ArenaListEntry &right) |
| Order two arena entries by mOrder. | |
| HxStr | DifficultyName (int nDifficulty) |
| Report the display name of a difficulty. | |
| void | RebuildStageLists () |
| Rebuild the per-stage level lists from the configuration. | |
| void | RebuildArenaLists () |
| Rebuild the solo and local arena tables from the configuration. | |
| std::vector< HxStr > & | GetLevelNames () |
| Report the level names RebuildStageLists() last read. | |
| std::vector< StageListEntry > * | GetStageList (int nStage) |
| Report one stage's level list. | |
| std::vector< ArenaListEntry > * | GetArenaList () |
| Report the arena table for the current game mode. | |
| MemcardConnectState | NextCardSlot (const MemcardConnectState &slot) |
| Report the memory-card location that follows another. | |
| HxStr | FirstCardSlotName () |
| Report the name of the first memory-card location found, or 1 when there is none. | |
|
inline |
Order two stage entries by mOrder.
Inline. The sort routines at 0x003cec08 and 0x003ced70 compare the two words at +0x08 with slt and call nothing.
| left | The first entry. |
| right | The second entry. |
|
inline |
Order two arena entries by mOrder.
Inline, for the same reason as the StageListEntry overload.
| left | The first entry. |
| right | The second entry. |
| HxStr DifficultyName | ( | int | nDifficulty | ) |
Report the display name of a difficulty.
The routine reads configuration code 0x258 with the key ms_easy, ms_normal, or ms_expert for difficulties 0, 1, and 2, and reports an empty string for any other value. The front end's stage and statistics screens call it. Every routine in this unit is a free function over file-scope data, and the unit's name is inferred. The European release looks the three names up in the current language instead.
| nDifficulty | The difficulty. |
| void RebuildStageLists | ( | ) |
Rebuild the per-stage level lists from the configuration.
The routine reads the level names under configuration code 0x276 into GetLevelNames(), empties every stage list, appends each level to the list of the stage configuration code 0x25d reports for it, and sorts each list by mOrder. The MetRenderer and MetNullRenderer constructors and MetExpansionPakScreen call it.
| void RebuildArenaLists | ( | ) |
Rebuild the solo and local arena tables from the configuration.
The routine reads the names under configuration code 0x27a for solo and then for local, rebuilds each table with mOrder from configuration code 0x25f, and sorts both. The MetRenderer constructor and MetExpansionPakScreen call it.
| std::vector< HxStr > & GetLevelNames | ( | ) |
Report the level names RebuildStageLists() last read.
The list is a function-local static of a file-local routine, which this accessor forwards to. CampaignStats rebuilds and merges its level records from it.
| std::vector< StageListEntry > * GetStageList | ( | int | nStage | ) |
Report one stage's level list.
| nStage | The stage, counted from 1. |
| std::vector< ArenaListEntry > * GetArenaList | ( | ) |
Report the arena table for the current game mode.
The local table in kGameModeLocal and the solo table otherwise. MetArenasScreen, the tutorial, the solo-stages, and the remix-load screens read it.
| MemcardConnectState NextCardSlot | ( | const MemcardConnectState & | slot | ) |
Report the memory-card location that follows another.
Port 1 without a multitap is followed by port 2, port 2 by port 1, slot 1-A by slot 1-B, and slot 1-B by slot 1-A. Any other location gives the default MemcardConnectState. The memory-card screens call it to cycle the selected card.
| slot | The current location. |
| HxStr FirstCardSlotName | ( | ) |
Report the name of the first memory-card location found, or 1 when there is none.
The body reads GlobalSettings::mCardSlots and copies the slot name of its first entry. The front end's character, remix, and Freq-maker screens call it. The European release copies the name only when the first entry is the first slot of port 1, and reports 1 otherwise.