SSBM Decomp
Loading...
Searching...
No Matches
gm_1A3F.c File Reference
#include "gm_1A3F.h"
#include "gm_1A45.h"
#include "gmmain_lib.h"
#include "db/db.h"
#include "dolphin/vi/vifuncs.h"
#include "gm/gmscdata.h"
#include "lb/lbaudio_ax.h"
#include "lb/lbdvd.h"
#include "lb/lbheap.h"
#include "lb/lbmthp.h"
#include "lb/lbsnap.h"
#include "lb/types.h"
#include "ty/toy.h"
#include <baselib/controller.h>
#include <baselib/devcom.h>
#include <baselib/sislib.h>
#include <baselib/video.h>
#include <melee/gm/types.h>
#include <melee/lb/lb_00B0.h>
#include <melee/lb/lbcardgame.h>
#include <melee/lb/lbcardnew.h>
#include <melee/ty/tydisplay.h>

Functions

void gm_801A3F48 (GameScene *scene)
u8 nextScene (GameScene *scenes)
GameScenefindScene (GameScene *scene)
void gm_801A4014 (GameMode *mode)
 Runs one game-mode scene transition and invokes the run loop for a given scene.
void * gm_GetGameSceneLoadDataCallback (GameScene *scene)
void * gm_GetGameSceneLeaveDataCallback (GameScene *scene)
void gm_SetSceneIndex (u8 arg0)
 Sets the scene index for both the current and previous scene.
void gm_SetPendingSceneIndex (u8 pending_scene)
 Sets the scene index for the pending scene.
u8 gm_GetPreviousSceneIndex (void)
u8 gm_GetCurrentSceneIndex (void)
void gm_SetNewGameModePending (void)
 Sets gm_80479D30's GameState::pending value to true (1).
void gm_SetPendingGameMode (s8 pending_mode)
 Sets GameRouting::pending_mode on gm_80479D30 to pending_mode for use after the current mode exits.
void gm_ChangeGameModeAfterCurrentScene (int pending_mode)
 Sets GameRouting::pending_mode and GameState::pending on gm_80479D30 to pending_mode and true (1) for use after the current scene exits,.
u8 gm_GetCurrentGameMode (void)
u8 gm_GetPreviousGameMode (void)
void gm_801A4330 (u8(*mode)(void))
bool gm_Is1PMode (u8 mode)
GameModefindMode (u8 idx)
u8 gm_RunGameMode (u8 mode_kind)
void gm_801A4510 (void)
 UnclePunch: Scene_Main.

Variables

static GameState gm_80479D30

Function Documentation

◆ gm_801A3F48()

void gm_801A3F48 ( GameScene * scene)

◆ nextScene()

u8 nextScene ( GameScene * scenes)
inline

◆ findScene()

GameScene * findScene ( GameScene * scene)
inline

◆ gm_801A4014()

void gm_801A4014 ( GameMode * mode)

Runs one game-mode scene transition and invokes the run loop for a given scene.

Finds the current GameScene in mode, runs its Prep handler, loads the scene via gm_FindGameSceneHandler / gm_801A4D34, then advances GameRouting::curr_scene_idx when the scene loop exits.

◆ gm_GetGameSceneLoadDataCallback()

void * gm_GetGameSceneLoadDataCallback ( GameScene * scene)

◆ gm_GetGameSceneLeaveDataCallback()

void * gm_GetGameSceneLeaveDataCallback ( GameScene * scene)

◆ gm_SetSceneIndex()

void gm_SetSceneIndex ( u8 arg0)

Sets the scene index for both the current and previous scene.

Sets GameRouting::curr_scene_idx and GameRouting::prev_scene_idx on gm_80479D30.

See docs related to GameScene.

Parameters
arg0The index of the scene to use. Not to be confused with the scene class_id, which is defined as a GameSceneKind.

◆ gm_SetPendingSceneIndex()

void gm_SetPendingSceneIndex ( u8 pending_scene)

Sets the scene index for the pending scene.

Sets GameRouting::pending_scene_idx on gm_80479D30 to arg0 + 1

See docs related to GameScene.

Parameters
arg0The scene index of the scene preceding the desired pending scene. The method adds +1 to the input. Not to be confused with the scene class_id, which is defined as a GameSceneKind.
Parameters
pending_sceneActually sets the pending scene to the scene following the input

◆ gm_GetPreviousSceneIndex()

u8 gm_GetPreviousSceneIndex ( void )

◆ gm_GetCurrentSceneIndex()

u8 gm_GetCurrentSceneIndex ( void )

◆ gm_SetNewGameModePending()

void gm_SetNewGameModePending ( void )

Sets gm_80479D30's GameState::pending value to true (1).

Signaling that the game mode should change after the current scene exits.

See also: gm_ChangeGameModeAfterCurrentScene, gm_SetPendingGameMode, gm_RunGameMode

◆ gm_SetPendingGameMode()

void gm_SetPendingGameMode ( s8 pending_mode)

Sets GameRouting::pending_mode on gm_80479D30 to pending_mode for use after the current mode exits.

Sets the gm_80479D30 GameRouting::pending_mode to the provided value. The pending_mode is read when gm_RunGameMode exits, ultimately passing the pending_mode on to the next invocation of gm_RunGameMode.

Note that subsequent calls to gm_SetPendingGameMode or gm_ChangeGameModeAfterCurrentScene will override the last one. When a game mode exits, the last call to gm_SetPendingGameMode or gm_ChangeGameModeAfterCurrentScene wins.

See also: gm_ChangeGameModeAfterCurrentScene, gm_SetNewGameModePending, gm_RunGameMode

Parameters
pending_modeThe next game mode to use

◆ gm_ChangeGameModeAfterCurrentScene()

void gm_ChangeGameModeAfterCurrentScene ( int pending_mode)

Sets GameRouting::pending_mode and GameState::pending on gm_80479D30 to pending_mode and true (1) for use after the current scene exits,.

Sets the gm_80479D30 GameRouting::pending_mode to the provided value, setting GameState::pending to true (1) in the process. The pending_mode is read when gm_RunGameMode exits, ultimately passing the pending_mode on to the next invocation of gm_RunGameMode.

Effectively equivelant to running gm_SetPendingGameMode and gm_SetNewGameModePending

Note that subsequent calls to gm_SetPendingGameMode or gm_ChangeGameModeAfterCurrentScene will override the last one. When a game mode exits, the last call to gm_SetPendingGameMode or gm_ChangeGameModeAfterCurrentScene wins.

See also: gm_SetPendingGameMode, gm_SetNewGameModePending, gm_RunGameMode

Parameters
pending_modeThe next game mode to use

◆ gm_GetCurrentGameMode()

u8 gm_GetCurrentGameMode ( void )

◆ gm_GetPreviousGameMode()

u8 gm_GetPreviousGameMode ( void )

◆ gm_801A4330()

void gm_801A4330 ( u8(* mode )(void))

◆ gm_Is1PMode()

bool gm_Is1PMode ( u8 mode)

◆ findMode()

GameMode * findMode ( u8 idx)
inline

◆ gm_RunGameMode()

u8 gm_RunGameMode ( u8 mode_kind)

◆ gm_801A4510()

void gm_801A4510 ( void )

UnclePunch: Scene_Main.

Variable Documentation

◆ gm_80479D30

GameState gm_80479D30
static