Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
111f0_len_860.c
Go to the documentation of this file.
1#include "common.h"
2#include "nu/nusys.h"
3#include "game_modes.h"
4
10
11void set_map_change_fade_rate(s16 fadeRate) {
12 gMapTransitionFadeRate = fadeRate;
13}
14
20
25
31
45
47 switch (gMapTransitionState) {
49 if (gMapTransitionStateTime != 0) {
51 break;
52 }
53
56
59 } else {
61 }
62
67 }
71 break;
77
78 if (gMapTransitionStateTime != 0) {
80 break;
81 }
83 gOverrideFlags &= ~GLOBAL_OVERRIDES_DISABLE_DRAW_FRAME;
85 }
86 break;
92
96 }
99 }
100 break;
101 }
102}
103
105 // startupState is being used as a timer here
106 if (gGameStatusPtr->startupState == 2) {
108 }
109}
110
118
131
133 switch (gMapTransitionState) {
134 case CHANGE_MAP_INIT:
135 update_npcs();
139
142 }
143 break;
144 case CHANGE_MAP_DELAY:
146 nuContRmbForceStop();
149 break;
153 }
154
155 if (gMapTransitionStateTime != 0) {
157 } else {
162 nuContRmbForceStopEnd();
165 }
169 }
170 break;
173 update_npcs();
176
177 if (gMapTransitionStateTime != 0) {
180 gOverrideFlags &= ~GLOBAL_OVERRIDES_DISABLE_DRAW_FRAME;
182 }
183 break;
185 update_npcs();
189
193 }
196 }
197 break;
198 }
199}
200
206
213
220
266
268}
BSS s16 gMapTransitionFadeRate
BSS s16 gMapTransitionState
void state_drawUI_enter_world(void)
void state_init_change_map(void)
BSS s16 gMapTransitionStateTime
GameOverStates
@ GAME_OVER_INIT
@ GAME_OVER_LOAD_MAP
@ GAME_OVER_FADE_IN
@ GAME_OVER_AWAIT_MAIN
void state_init_enter_demo(void)
BSS s16 gMapTransitionAlpha
void state_step_change_map(void)
ChangeMapStates
@ CHANGE_MAP_FADE_IN
@ CHANGE_MAP_AWAIT_MAIN
@ CHANGE_MAP_INIT
@ CHANGE_MAP_DELAY
@ CHANGE_MAP_LOAD_MAP
void state_step_enter_world(void)
BSS s16 gLoadedFromFileSelect
void init_enter_world_shared(void)
EnterWorldStates
@ ENTER_WORLD_FADE_IN
@ ENTER_WORLD_LOAD_MAP
@ ENTER_WORLD_AWAIT_MAIN
void state_init_game_over(void)
void state_drawUI_change_map(void)
void state_step_game_over(void)
void state_drawUI_game_over(void)
void set_map_change_fade_rate(s16 fadeRate)
void state_init_enter_world(void)
@ OVERLAY_NONE
Definition enums.h:2387
@ OVERLAY_SCREEN_COLOR
Definition enums.h:2388
@ TRANSITION_ENTER_WORLD
Definition enums.h:2370
@ DEBUG_SCRIPTS_NONE
Definition enums.h:4275
@ PS_FLAG_NO_STATIC_COLLISION
Definition enums.h:3051
@ LOAD_FROM_MAP
Definition enums.h:3560
@ LOAD_FROM_FILE_SELECT
Definition enums.h:3561
@ TIME_FREEZE_NONE
Definition enums.h:3464
@ CONTEXT_WORLD
Definition enums.h:3529
@ DEMO_STATE_NONE
Definition enums.h:3535
@ GLOBAL_OVERRIDES_DISABLE_DRAW_FRAME
Definition enums.h:4322
s16 update_enter_map_screen_overlay(s16 *progress)
void set_map_transition_effect(ScreenTransition)
s32 disable_player_input(void)
Definition 77480.c:990
void update_effects(void)
Definition effects.c:56
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition evt.c:1847
void set_screen_overlay_params_front(u8, f32)
s32 enable_player_input(void)
Definition 77480.c:998
void update_cameras(void)
Definition cam_main.c:19
void load_map_by_IDs(s16 areaID, s16 mapID, s16 loadType)
Definition world.c:53
s16 update_exit_map_screen_overlay(s16 *progress)
s32 does_script_exist(s32 id)
void set_time_freeze_mode(s32)
Time freeze modes: 0: none 1: NPCs move, can't be interacted with 2: NPCs don't move,...
Definition main_loop.c:358
void update_player(void)
Definition 77480.c:625
void draw_status_ui(void)
Definition inventory.c:1411
void set_game_mode(s32 modeID)
Definition game_modes.c:127
@ GAME_MODE_DEMO
Definition game_modes.h:22
@ GAME_MODE_WORLD
Definition game_modes.h:12
void update_encounters(void)
Definition npc.c:2270
void update_npcs(void)
Updates all NPCs.
Definition npc.c:617
@ GB_Unused_EVT_01
copied from GameStatus->unk_A9 by Function_80035E54 during save file load
#define BSS
Definition macros.h:7
s32 gOverrideFlags
Definition main_loop.c:11
GameStatus * gGameStatusPtr
Definition main_loop.c:32
PlayerStatus gPlayerStatus
Definition 77480.c:39
s32 gTimeFreezeMode
Definition main_loop.c:12