SSBM Decomp
Loading...
Searching...
No Matches
gmtou_1.c File Reference

Data Structures

struct  TmPlayerAnimFrames
union  TmPlayerAnimFrameTable
struct  MatchEndStanding
struct  Lbl804799D8Text
struct  fn_8019A158_state
struct  TimerFmt
struct  Preload

Typedefs

typedef char * TextPtr
typedef u8 * BytePtr

Functions

void fn_80196510 (void)
s32 fn_8019655C (void)
bool fn_80196564 (TmData *arg0)
bool fn_80196594 (TmData *arg0)
void fn_801965C4 (void)
void fn_80196684 (s32 bracket_idx)
 Randomly assigns bracket positions for tournament seeding.
void fn_801967E0 (s32 arg0)
s32 fn_80196CF8 (void)
void fn_80196DBC (HSD_GObj *gobj)
 Cycles animation frame counter and updates JObj animation.
void fn_80196E30 (HSD_GObj *gobj)
 Updates the tournament UI animation frame counter.
void fn_80196EEC (HSD_GObj *gobj)
 Tournament mode JObj visibility/animation callback.
static s32 gmTournament_IsPlayerSetupOption (void)
 ASSERT_SIZE (TmPlayerAnimFrames, 6)
 ASSERT_SIZE (TmPlayerAnimFrameTable, sizeof(s32) *9)
void fn_80196FFC (HSD_GObj *gobj)
void fn_801973F8 (HSD_GObj *gobj)
 Updates visibility and position of a tournament menu JObj.
void fn_801975C8 (HSD_GObj *gobj)
 Updates visibility of a tournament menu JObj based on current menu state.
void fn_801976D4 (HSD_GObj *gobj)
 Updates visibility and animation of tournament menu JObj.
void fn_801977AC (HSD_GObj *gobj)
void fn_80197AF0 (HSD_GObj *gobj)
void fn_80197D4C (HSD_GObj *gobj)
 Updates visibility of a menu JObj based on current menu option.
void fn_80197E18 (HSD_GObj *gobj)
 Updates player HUD element visibility and position.
void fn_80197FD8 (HSD_GObj *gobj)
 Updates JObj visibility based on menu option and player state.
void fn_801981A0 (HSD_GObj *gobj)
void fn_801983E4 (HSD_GObj *gobj)
 Updates the visibility and position of a player's controller indicator.
void fn_80198584 (ResultsData *results)
void fn_801985D4 (HSD_GObj *gobj)
void fn_80198824 (HSD_GObj *gobj)
 Animates and positions the tournament bracket results overlay JObj.
void fn_80198BA0 (void)
 Initializes tournament mode match data.
void fn_80198C60 (void)
 Initializes tournament mode text displays.
void fn_80198D18 (void)
 Initializes the scene rendering components for the gm_18A5 game mode.
void fn_80198EBC (void)
 Matched bar data relocations.
void fn_80199AF0 (void)
static BracketEntry * fn_8019A158_GetBracketEntry (s32 bracket_idx)
 ASSERT_SIZE (MatchEndStanding, 0xA8)
void fn_8019A158 (void)
void fn_8019A71C (s32 *statestate, u32 unused1, u32 unused2)
void gm_8019A828 (void)
static u8 get_pad_error (s32 i)
void fn_8019A86C (TmData *tm, u32 arg1, u32 arg2)
void fn_8019AF50 (s32 *arg0, u32 arg1, u32 arg2)
 Tournament match timer display/audio state machine.
void gm_Scene_TouBracket_OnFrame (void)
 Per-frame update for tournament mode menu.
static void fn_8019B458_UpdateRank (TmData *tm, struct Lbl804799D8_t *d8)
 Transitions to results screen after a tournament match.
static void setupScene (TmData *tm, struct Lbl804799D8_t *d8)
void fn_8019B458 (s32 *arg0)
void fn_8019B81C (s32 *statestate)
 Initializes match data and transitions to next state.
void fn_8019B860 (TmData *tm)
void gm_Scene_TouBracket_OnEnter (void *arg0)
void gm_Scene_TouBracket_OnExit (void *arg0)
void fn_8019BA04 (s32 *statestate)

Variables

static HSD_Archive * lbl_804D6660
static HSD_Archive * lbl_804D6664
static HSD_Archive * lbl_804D6668
static SceneDesc * lbl_804D666C
static SceneDesc * lbl_804D6670
static SceneDesc * lbl_804D6674
static s32 lbl_804D6678
static s32 lbl_804D667C
static u8 lbl_804D6680 [3]
static struct Lbl804799D8_t lbl_804799D8
struct lbl_803DA0D0_t lbl_803DA0D0
static s32 lbl_804D4190 = 0xFFFFFFFF
static s32 lbl_804D4194 = -1
TmPlayerAnimFrameTable const lbl_803B7CE0
u8 const lbl_803B7D04 [20] = { 0 }

Typedef Documentation

◆ TextPtr

typedef char* TextPtr

◆ BytePtr

typedef u8* BytePtr

Function Documentation

◆ fn_80196510()

void fn_80196510 ( void )

◆ fn_8019655C()

s32 fn_8019655C ( void )

◆ fn_80196564()

bool fn_80196564 ( TmData * arg0)

◆ fn_80196594()

bool fn_80196594 ( TmData * arg0)

◆ fn_801965C4()

void fn_801965C4 ( void )

◆ fn_80196684()

void fn_80196684 ( s32 bracket_idx)

Randomly assigns bracket positions for tournament seeding.

◆ fn_801967E0()

void fn_801967E0 ( s32 arg0)

◆ fn_80196CF8()

s32 fn_80196CF8 ( void )

◆ fn_80196DBC()

void fn_80196DBC ( HSD_GObj * gobj)

Cycles animation frame counter and updates JObj animation.

◆ fn_80196E30()

void fn_80196E30 ( HSD_GObj * gobj)

Updates the tournament UI animation frame counter.

◆ fn_80196EEC()

void fn_80196EEC ( HSD_GObj * gobj)

Tournament mode JObj visibility/animation callback.

◆ gmTournament_IsPlayerSetupOption()

s32 gmTournament_IsPlayerSetupOption ( void )
inlinestatic

◆ ASSERT_SIZE() [1/3]

ASSERT_SIZE ( TmPlayerAnimFrames ,
6  )

◆ ASSERT_SIZE() [2/3]

ASSERT_SIZE ( TmPlayerAnimFrameTable ,
sizeof(s32) * 9 )

◆ fn_80196FFC()

void fn_80196FFC ( HSD_GObj * gobj)

◆ fn_801973F8()

void fn_801973F8 ( HSD_GObj * gobj)

Updates visibility and position of a tournament menu JObj.

◆ fn_801975C8()

void fn_801975C8 ( HSD_GObj * gobj)

Updates visibility of a tournament menu JObj based on current menu state.

◆ fn_801976D4()

void fn_801976D4 ( HSD_GObj * gobj)

Updates visibility and animation of tournament menu JObj.

◆ fn_801977AC()

void fn_801977AC ( HSD_GObj * gobj)

◆ fn_80197AF0()

void fn_80197AF0 ( HSD_GObj * gobj)

◆ fn_80197D4C()

void fn_80197D4C ( HSD_GObj * gobj)

Updates visibility of a menu JObj based on current menu option.

◆ fn_80197E18()

void fn_80197E18 ( HSD_GObj * gobj)

Updates player HUD element visibility and position.

◆ fn_80197FD8()

void fn_80197FD8 ( HSD_GObj * gobj)

Updates JObj visibility based on menu option and player state.

◆ fn_801981A0()

void fn_801981A0 ( HSD_GObj * gobj)
Todo
Down to linking Updates player cursor animation and position.

◆ fn_801983E4()

void fn_801983E4 ( HSD_GObj * gobj)

Updates the visibility and position of a player's controller indicator.

◆ fn_80198584()

void fn_80198584 ( ResultsData * results)

◆ fn_801985D4()

void fn_801985D4 ( HSD_GObj * gobj)

◆ fn_80198824()

void fn_80198824 ( HSD_GObj * gobj)

Animates and positions the tournament bracket results overlay JObj.

Uses HSD_JObjSetTranslateZ for visibility, HSD_JObjSetTranslate/SetScale for positioning from lbl_804799D8 cached values.

◆ fn_80198BA0()

void fn_80198BA0 ( void )

Initializes tournament mode match data.

Initializes tournament mode match data structures. Type casts used to match target instruction patterns (stw/sth vs stb).

◆ fn_80198C60()

void fn_80198C60 ( void )

Initializes tournament mode text displays.

◆ fn_80198D18()

void fn_80198D18 ( void )

Initializes the scene rendering components for the gm_18A5 game mode.

◆ fn_80198EBC()

void fn_80198EBC ( void )

Matched bar data relocations.

◆ fn_80199AF0()

void fn_80199AF0 ( void )

◆ fn_8019A158_GetBracketEntry()

BracketEntry * fn_8019A158_GetBracketEntry ( s32 bracket_idx)
inlinestatic

◆ ASSERT_SIZE() [3/3]

ASSERT_SIZE ( MatchEndStanding ,
0xA8  )

◆ fn_8019A158()

void fn_8019A158 ( void )

◆ fn_8019A71C()

void fn_8019A71C ( s32 * state,
u32 unused1,
u32 unused2 )

◆ gm_8019A828()

void gm_8019A828 ( void )

◆ get_pad_error()

u8 get_pad_error ( s32 i)
inlinestatic

◆ fn_8019A86C()

void fn_8019A86C ( TmData * tm,
u32 arg1,
u32 arg2 )
Todo
The bracket-entry fill's address/value temps trade r0/r4.

◆ fn_8019AF50()

void fn_8019AF50 ( s32 * arg0,
u32 arg1,
u32 arg2 )

Tournament match timer display/audio state machine.

Handles match countdown, audio transitions, and end conditions.

◆ gm_Scene_TouBracket_OnFrame()

void gm_Scene_TouBracket_OnFrame ( void )

Per-frame update for tournament mode menu.

◆ fn_8019B458_UpdateRank()

void fn_8019B458_UpdateRank ( TmData * tm,
struct Lbl804799D8_t * d8 )
inlinestatic

Transitions to results screen after a tournament match.

Ranks players, preloads stage/character data, and starts audio.

◆ setupScene()

void setupScene ( TmData * tm,
struct Lbl804799D8_t * d8 )
inlinestatic

◆ fn_8019B458()

void fn_8019B458 ( s32 * arg0)

◆ fn_8019B81C()

void fn_8019B81C ( s32 * state)

Initializes match data and transitions to next state.

Type cast used to match target stw instruction pattern.

◆ fn_8019B860()

void fn_8019B860 ( TmData * tm)

◆ gm_Scene_TouBracket_OnEnter()

void gm_Scene_TouBracket_OnEnter ( void * arg0)

◆ gm_Scene_TouBracket_OnExit()

void gm_Scene_TouBracket_OnExit ( void * arg0)

◆ fn_8019BA04()

void fn_8019BA04 ( s32 * state)

Variable Documentation

◆ lbl_804D6660

HSD_Archive* lbl_804D6660
static

◆ lbl_804D6664

HSD_Archive* lbl_804D6664
static

◆ lbl_804D6668

HSD_Archive* lbl_804D6668
static

◆ lbl_804D666C

SceneDesc* lbl_804D666C
static

◆ lbl_804D6670

SceneDesc* lbl_804D6670
static

◆ lbl_804D6674

SceneDesc* lbl_804D6674
static

◆ lbl_804D6678

s32 lbl_804D6678
static

◆ lbl_804D667C

s32 lbl_804D667C
static

◆ lbl_804D6680

u8 lbl_804D6680[3]
static

◆ lbl_804799D8

struct Lbl804799D8_t lbl_804799D8
static

◆ lbl_803DA0D0

struct lbl_803DA0D0_t lbl_803DA0D0
Initial value:
= {
0, 1, 2, 3, 5, 6, 12, 6, 6, 7, 9, 8, 6, 9, 4, 9, 10, 11, 12,
2, 12, 6, 7, 9, 12, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 3, 3, 0,
0, 0, 5, 6, 4, 0, 0, 0, 6, 7, 6, 10, 0, 0, 12, 13, 8, 12, 0,
0, 14, 15, 12, 18, 21, 0, 23, 24, 16, 24, 28, 0, 30, 31, 24, 36, 42, 46,
48, 49, 32, 48, 56, 60, 62, 63, 2, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0,
4, 4, 0, 0, 0, 6, 7, 6, 0, 0, 0, 8, 9, 9, 0, 0, 0, 12, 13,
2, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 5, 4,
0, 0, 0, 6, 7, 5, 0, 0, 0, 7, 8, 6, 0, 0, 0, 8, 9, 7, 0,
0, 0, 9, 10, 8, 0, 0, 0, 10, 11, 8, 12, 0, 0, 14, 15, 9, 0, 0,
0, 12, 13, 10, 0, 0, 0, 14, 15, 11, 0, 0, 0, 15, 16, 12, 0, 0, 0,
16, 17, 13, 0, 0, 0, 17, 18, 14, 0, 0, 0, 18, 19, 15, 0, 0, 0, 19,
20, 16, 0, 0, 0, 20, 21, 16, 20, 0, 0, 22, 23
}

◆ lbl_804D4190

s32 lbl_804D4190 = 0xFFFFFFFF
static

◆ lbl_804D4194

s32 lbl_804D4194 = -1
static

◆ lbl_803B7CE0

TmPlayerAnimFrameTable const lbl_803B7CE0
Initial value:
= {
{ 0x0000001E, 0x00000032, 0x003B0000, 0x003C0046, 0x0001005A, 0x00640000,
0x006E0082, 0x00000096, 0x00A00000 }
}

◆ lbl_803B7D04

u8 const lbl_803B7D04[20] = { 0 }