papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
game_modes.c File Reference

Data Structures

struct  GameModeIncomplete
 

Functions

void set_game_mode (s16 mode)
 
s16 get_game_mode (void)
 

Variables

s32 D_80077420 []
 
GameModeIncomplete GameModeStartup
 
GameModeIncomplete GameModeLogos
 
GameModeIncomplete GameModeTitleScreen
 
GameModeIncomplete GameModeEnterDemoWorld
 
GameModeIncomplete GameModeChangeMap
 
GameModeIncomplete GameModeGameOver
 
GameModeIncomplete GameModeEnterWorld
 
GameModeIncomplete GameModeWorld
 
GameModeIncomplete GameModeBattle
 
GameModeIncomplete GameModeEndBattle
 
GameModeIncomplete GameModePause
 
GameModeIncomplete GameModeUnpause
 
GameModeIncomplete GameModeLanguageSelect
 
GameModeIncomplete GameModeEndLanguageSelect
 
GameModeIncomplete GameModeFileSelect
 
GameModeIncomplete GameModeEndFileSelect
 
GameModeIncomplete GameModeIntro
 
GameModeIncomplete GameModeDemo
 
GameModegameModeMap []
 
BSS s16 CurGameMode
 

Function Documentation

◆ get_game_mode()

◆ set_game_mode()

Variable Documentation

◆ CurGameMode

BSS s16 CurGameMode

Referenced by get_game_mode(), and set_game_mode().

◆ D_80077420

s32 D_80077420[]
Initial value:
= {
0x000000E4, 0x000000E1, 0x000000EB, 0x000000EF, 0x000000F6, 0x0000010A, 0x0000010C, 0x00000121, 0x00000122,
0x00000123, 0x00000118, 0x0000010E, 0x00000131, 0x0000012E, 0x0000012F, 0x000000E0, 0x000000EE, 0x000000F0,
0x00000109, 0x0000010B, 0x00000107, 0x000000E8, 0x00000117, 0x00000108, 0x00000124, 0x00000125, 0x00000126,
0x0000010F, 0x0000012B, 0x0000012C, 0x000000E9, 0x00000106, 0x00000143, 0x000000ED, 0x00000129, 0x0000012A,
0x000000E7, 0x000000F8, 0x000000FF, 0x00000140, 0x00000105, 0x00000110, 0x00000119, 0x000000E3, 0x00000116,
0x00000113, 0x000000F4, 0x000000E2, 0x000000F5, 0x00000115, 0x00000101, 0x00000102, 0x0000012D, 0x00000111,
0x0000010D, 0x00000112, 0x000000F9, 0x00000130, 0x000000FB, 0x000000FA, 0x000000EC, 0x000000E5, 0x00000150,
0x000000F2, 0x00000100, 0x000000F1, 0x00000114, 0x000000F7, 0x000000F3, 0x00000145, 0x00000146, 0x00000147,
0x00000148, 0x00000149, 0x00000104, 0x000000FC, 0x00000103, 0x0000011A, 0x0000011B, 0x000000FD, 0x00000144,
0x0000011E, 0x000000FE, 0x0000011F, 0x0000011D, 0x0000011C, 0x000000E6, 0x00000120, 0x00000080, 0x00000081,
0x00000082, 0x00000084, 0x00000083, 0x00000086, 0x00000085, 0x00000088, 0x0000008B, 0x0000008A, 0x0000008C,
0x0000008E, 0x00000095, 0x0000008D, 0x00000089, 0x0000009B, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1,
0x0000009D, 0x0000009C, 0x000000A4, 0x000000A3, 0x000000A2, 0x00000093, 0x00000094, 0x000000A5, 0x000000A6,
0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF,
0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x0000009A, 0x00000098, 0x00000096, 0x00000097, 0x00000087,
0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B9, 0x000000B8,
0x000000B7, 0x000000BA, 0x000000BD, 0x000000BB, 0x000000BE, 0x000000BF, 0x000000BC, 0x000000C0, 0x000000C1,
0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA,
0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3,
0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA,
}

◆ GameModeBattle

GameModeIncomplete GameModeBattle
Initial value:
= {
NULL,
}
void state_init_battle(void)
Definition state_battle.c:34
void state_drawUI_battle(void)
Definition state_battle.c:121
void state_step_battle(void)
Definition state_battle.c:38
@ MODE_FLAG_NONE
Definition game_modes.h:8

◆ GameModeChangeMap

GameModeIncomplete GameModeChangeMap
Initial value:
= {
NULL,
}
void state_init_change_map(void)
Definition state_map_transitions.c:119
void state_step_change_map(void)
Definition state_map_transitions.c:132
void state_drawUI_change_map(void)
Definition state_map_transitions.c:201

◆ GameModeDemo

GameModeIncomplete GameModeDemo
Initial value:
= {
NULL,
}
void state_step_demo(void)
Definition state_demo.c:161
void state_drawUI_demo(void)
Definition state_demo.c:274
void state_init_demo(void)
Definition state_demo.c:144

◆ GameModeEndBattle

GameModeIncomplete GameModeEndBattle
Initial value:
= {
NULL,
}
void state_step_end_battle(void)
Definition state_battle.c:134
void state_drawUI_end_battle(void)
Definition state_battle.c:212
void state_init_end_battle(void)
Definition state_battle.c:128

◆ GameModeEndFileSelect

GameModeIncomplete GameModeEndFileSelect
Initial value:
= {
NULL,
}
void state_step_exit_file_select(void)
Definition state_file_select.c:480
void state_drawUI_exit_file_select(void)
Definition state_file_select.c:545
void state_init_exit_file_select(void)
Definition state_file_select.c:298

◆ GameModeEndLanguageSelect

GameModeIncomplete GameModeEndLanguageSelect
Initial value:
= {
NULL,
}
void state_step_exit_language_select(void)
Definition state_file_select.c:313
void state_drawUI_exit_language_select(void)
Definition state_file_select.c:542
void state_init_exit_language_select(void)
Definition state_file_select.c:279

◆ GameModeEnterDemoWorld

GameModeIncomplete GameModeEnterDemoWorld
Initial value:
= {
NULL,
}
void state_drawUI_enter_world(void)
Definition state_map_transitions.c:104
void state_init_enter_demo(void)
Definition state_map_transitions.c:21
void state_step_enter_world(void)
Definition state_map_transitions.c:46

◆ GameModeEnterWorld

GameModeIncomplete GameModeEnterWorld
Initial value:
= {
NULL,
}
void state_init_enter_world(void)
Definition state_map_transitions.c:26

◆ GameModeFileSelect

GameModeIncomplete GameModeFileSelect
Initial value:
= {
NULL,
}
void state_init_file_select(void)
Definition state_file_select.c:89
void state_step_file_select(void)
Definition state_file_select.c:242
void state_drawUI_file_select(void)
Definition state_file_select.c:276

◆ GameModeGameOver

GameModeIncomplete GameModeGameOver
Initial value:
= {
NULL,
}
void state_init_game_over(void)
Definition state_map_transitions.c:214
void state_step_game_over(void)
Definition state_map_transitions.c:221
void state_drawUI_game_over(void)
Definition state_map_transitions.c:267

◆ GameModeIntro

GameModeIncomplete GameModeIntro
Initial value:
= {
NULL,
}
void state_init_intro(void)
Definition state_intro.c:25
void state_step_intro(void)
Definition state_intro.c:98
void state_drawUI_intro(void)
Definition state_intro.c:259

◆ GameModeLanguageSelect

GameModeIncomplete GameModeLanguageSelect
Initial value:
= {
NULL,
}
void state_init_language_select(void)
Definition state_file_select.c:49
void state_drawUI_language_select(void)
Definition state_file_select.c:273
void state_step_language_select(void)
Definition state_file_select.c:125

◆ GameModeLogos

GameModeIncomplete GameModeLogos
Initial value:
= {
NULL,
}
void state_step_logos(void)
Definition state_logos.c:129
void state_init_logos(void)
Definition state_logos.c:67
void state_drawUI_logos(void)
Definition state_logos.c:254

◆ gameModeMap

GameMode* gameModeMap[]
Initial value:
= {
}
GameModeIncomplete GameModeEndLanguageSelect
Definition game_modes.c:183
GameModeIncomplete GameModeIntro
Definition game_modes.c:216
GameModeIncomplete GameModeEndFileSelect
Definition game_modes.c:205
GameModeIncomplete GameModeLogos
Definition game_modes.c:51
GameModeIncomplete GameModeChangeMap
Definition game_modes.c:84
GameModeIncomplete GameModeEnterDemoWorld
Definition game_modes.c:73
GameModeIncomplete GameModePause
Definition game_modes.c:150
GameModeIncomplete GameModeEndBattle
Definition game_modes.c:139
GameModeIncomplete GameModeBattle
Definition game_modes.c:128
GameModeIncomplete GameModeStartup
Definition game_modes.c:40
GameModeIncomplete GameModeEnterWorld
Definition game_modes.c:106
GameModeIncomplete GameModeDemo
Definition game_modes.c:227
GameModeIncomplete GameModeGameOver
Definition game_modes.c:95
GameModeIncomplete GameModeUnpause
Definition game_modes.c:161
GameModeIncomplete GameModeLanguageSelect
Definition game_modes.c:172
GameModeIncomplete GameModeWorld
Definition game_modes.c:117
GameModeIncomplete GameModeFileSelect
Definition game_modes.c:194
GameModeIncomplete GameModeTitleScreen
Definition game_modes.c:62
@ GAME_MODE_LANGUAGE_SELECT
Definition game_modes.h:30
@ GAME_MODE_PAUSE
Definition game_modes.h:28
@ GAME_MODE_END_BATTLE
Definition game_modes.h:27
@ GAME_MODE_LOGOS
Definition game_modes.h:19
@ GAME_MODE_UNPAUSE
Definition game_modes.h:29
@ GAME_MODE_DEMO
Definition game_modes.h:35
@ GAME_MODE_ENTER_WORLD
Definition game_modes.h:25
@ GAME_MODE_GAME_OVER
Definition game_modes.h:24
@ GAME_MODE_BATTLE
Definition game_modes.h:26
@ GAME_MODE_WORLD
Definition game_modes.h:22
@ GAME_MODE_END_FILE_SELECT
Definition game_modes.h:33
@ GAME_MODE_END_LANGUAGE_SELECT
Definition game_modes.h:31
@ GAME_MODE_FILE_SELECT
Definition game_modes.h:32
@ GAME_MODE_ENTER_DEMO_WORLD
Definition game_modes.h:21
@ GAME_MODE_CHANGE_MAP
Definition game_modes.h:23
@ GAME_MODE_TITLE_SCREEN
Definition game_modes.h:20
@ GAME_MODE_INTRO
Definition game_modes.h:34
@ GAME_MODE_STARTUP
Definition game_modes.h:18
Definition game_modes.h:38

Referenced by set_game_mode().

◆ GameModePause

GameModeIncomplete GameModePause
Initial value:
= {
NULL,
}
void state_init_pause(void)
Definition state_pause.c:84
void state_step_pause(void)
Definition state_pause.c:94
void state_drawUI_pause(void)
Definition state_pause.c:182

◆ GameModeStartup

GameModeIncomplete GameModeStartup
Initial value:
= {
NULL,
}
void state_init_startup(void)
Definition state_startup.c:7
void state_step_startup(void)
Definition state_startup.c:12
void state_drawUI_startup(void)
Definition state_startup.c:94

◆ GameModeTitleScreen

GameModeIncomplete GameModeTitleScreen
Initial value:
= {
NULL,
}
void state_drawUI_title_screen(void)
Definition state_title_screen.c:401
void state_step_title_screen(void)
Definition state_title_screen.c:239
void state_init_title_screen(void)
Definition state_title_screen.c:159

◆ GameModeUnpause

GameModeIncomplete GameModeUnpause
Initial value:
= {
NULL,
}
void state_drawUI_unpause(void)
Definition state_pause.c:307
void state_step_unpause(void)
Definition state_pause.c:194
void state_init_unpause(void)
Definition state_pause.c:185

◆ GameModeWorld

GameModeIncomplete GameModeWorld
Initial value:
= {
NULL,
}
void state_step_world(void)
Definition state_world.c:11
void state_drawUI_world(void)
Definition state_world.c:21
void state_init_world(void)
Definition state_world.c:7