SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
mncount.h
Go to the documentation of this file.
1
#ifndef MELEE_MN_MNCOUNT_H
2
#define MELEE_MN_MNCOUNT_H
3
4
#include <
Runtime/platform.h
>
5
6
#include <
melee/mn/forward.h
>
7
#include <
sysdolphin/baselib/forward.h
>
8
9
#include <
melee/mn/types.h
>
10
11
#define MNCOUNT_VISIBLE_ROWS 10
12
13
typedef
struct
MnCountData
{
14
unsigned
char
scroll_pos
;
15
int
expand_anim_duration
;
16
HSD_Text
*
labels
[
MNCOUNT_VISIBLE_ROWS
];
17
HSD_Text
*
values
[
MNCOUNT_VISIBLE_ROWS
];
18
HSD_Text
*
title
;
19
}
MnCountData
;
20
21
#ifdef M2C
22
#define GET_MNCOUNT(gobj) \
23
((MnCountData*) HSD_GObjGetUserData((HSD_GObj*) gobj))
24
#else
25
#define GET_MNCOUNT(gobj) ((MnCountData*) HSD_GObjGetUserData(gobj))
26
#endif
27
28
typedef
enum
{
29
POWER_COUNT
,
// Power Count
30
POWER_TIME
,
// Power Time
31
PLAY_TIME
,
// Play Time
32
SINGLEPLAYER_TIME
,
// Single-Player Time
33
VS_PLAY_TIME
,
// VS. Play Time
34
COMBINED_VS_PLAY_TIME
,
// Combined VS. Play Time
35
VS_PLAY_MATCH_TOTAL
,
// VS. Play Match Total
36
TIME_MATCH_TOTAL
,
// Time Match Total
37
STOCK_MATCH_TOTAL
,
// Stock Match Total
38
COIN_MATCH_TOTAL
,
// Coin Match Total
39
BONUS_MATCH_TOTAL
,
// Bonus Match Total
40
VS_PLAY_CONTESTANTS
,
// VS. Play Contestants
41
MATCH_RESET_COUNTER
,
// Match Reset Counter
42
TOTAL_DAMAGE
,
// Total Damage
43
KO_TOTAL
,
// KO Total
44
SELFDESTRUCT_TOTAL
,
// Self-Destruct Total
45
AVAILABLE_CHARACTERS
,
// Available Characters
46
AVAILABLE_MAPS
,
// Available Maps
47
TROPHY_TOTAL
,
// Trophy Total
48
NAME_TOTAL
,
// Name Total
49
LONGEST_TIME
,
// Longest Time
50
SECOND_LONGEST_TIME
,
// 2nd Longest Time
51
SHORTEST_TIME
,
// Shortest Time
52
SMASH_CHAMP
,
// Smash Champ
53
SMASH_SAP
,
// Smash Sap
54
SLUG_MEISTER
,
// Slug Meister
55
PUNCHING_BAG
,
// Punching Bag
56
KO_KINGPIN
,
// KO Kingpin
57
NO_DEFENSE_NELLY
,
// No-Defense Nelly
58
DISASTER_MASTER
,
// Disaster Master
59
}
mnCount_row
;
60
61
/* 2502CC */
u32
mnCount_GetMatchTime
(
SelectableCharacterKind
);
62
/* 2502F0 */
u32
mnCount_GetKOKingpin
(
SelectableCharacterKind
);
63
/* 250314 */
u32
mnCount_GetNoDefenseNelly
(
SelectableCharacterKind
);
64
/* 250338 */
u32
mnCount_GetDisasterMaster
(
SelectableCharacterKind
);
65
/* 25035C */
int
66
mnCount_8025035C
(
s32
skip_count,
u32
(*get_val_func)(
SelectableCharacterKind
));
67
/* 25069C */
u32
mnCount_GetSmashChamp
(
SelectableCharacterKind
);
68
/* 2506C0 */
u32
mnCount_GetSmashSap
(
SelectableCharacterKind
);
69
/* 2506E4 */
u32
mnCount_GetSlugMeister
(
SelectableCharacterKind
);
70
/* 250708 */
u32
mnCount_GetPunchingBag
(
SelectableCharacterKind
);
71
/* 25072C */
s32
mnCount_8025072C
(
CountEntry
*
entries
,
s32
start_idx,
72
bool
mode);
73
/* 25092C */
s32
74
mnCount_8025092C
(
s32
rank,
u32
(*getVal)(
SelectableCharacterKind
),
bool
mode);
75
/* 250C7C */
SelectableCharacterKind
76
mnCount_GetRowValue_Character
(
mnCount_row
row);
77
/* 250DE4 */
unsigned
int
mnCount_GetRowValue_Number
(
int
);
78
/* 250FF8 */
void
mnCount_CreateRow
(
HSD_GObj
*,
int
,
mnCount_row
);
79
/* 251278 */
void
mnCount_HandleUserInput
(
HSD_GObj
*
gobj
);
80
/* 2513F4 */
void
mnCount_UpdateArrowIndicators
(
HSD_GObj
*
gobj
);
81
/* 2514B8 */
void
fn_802514B8
(
HSD_GObj
*
gobj
);
82
/* 2514D8 */
void
fn_802514D8
(
HSD_GObj
*
gobj
);
83
/* 251640 */
void
fn_80251640
(
HSD_GObj
*
gobj
);
84
/* 2517E0 */
void
mnCount_InitUserData
(
MnCountData
* arg0);
85
/* 25186C */
void
mnCount_Create
(
void
);
86
87
#endif
u32
unsigned long u32
Definition
types.h:9
s32
signed long s32
Definition
types.h:8
entries
struct lbl_803D5A4C_t entries[0x80C/sizeof(struct lbl_803D5A4C_t)]
Definition
gm_16F1.static.h:71
gobj
HSD_GObj * gobj
Definition
gm_19EF.c:73
forward.h
mnCount_GetNoDefenseNelly
u32 mnCount_GetNoDefenseNelly(SelectableCharacterKind)
Definition
mncount.c:109
mnCount_8025092C
s32 mnCount_8025092C(s32 rank, u32(*getVal)(SelectableCharacterKind), bool mode)
Definition
mncount.c:292
fn_802514D8
void fn_802514D8(HSD_GObj *gobj)
Definition
mncount.c:697
mnCount_HandleUserInput
void mnCount_HandleUserInput(HSD_GObj *gobj)
Definition
mncount.c:577
mnCount_GetKOKingpin
u32 mnCount_GetKOKingpin(SelectableCharacterKind)
Definition
mncount.c:104
mnCount_GetSlugMeister
u32 mnCount_GetSlugMeister(SelectableCharacterKind)
Definition
mncount.c:213
mnCount_GetRowValue_Character
SelectableCharacterKind mnCount_GetRowValue_Character(mnCount_row row)
Definition
mncount.c:389
mnCount_CreateRow
void mnCount_CreateRow(HSD_GObj *, int, mnCount_row)
Definition
mncount.c:510
mnCount_GetMatchTime
u32 mnCount_GetMatchTime(SelectableCharacterKind)
Definition
mncount.c:99
mnCount_UpdateArrowIndicators
void mnCount_UpdateArrowIndicators(HSD_GObj *gobj)
Definition
mncount.c:605
mnCount_row
mnCount_row
Definition
mncount.h:28
COIN_MATCH_TOTAL
@ COIN_MATCH_TOTAL
Definition
mncount.h:38
MATCH_RESET_COUNTER
@ MATCH_RESET_COUNTER
Definition
mncount.h:41
SECOND_LONGEST_TIME
@ SECOND_LONGEST_TIME
Definition
mncount.h:50
COMBINED_VS_PLAY_TIME
@ COMBINED_VS_PLAY_TIME
Definition
mncount.h:34
KO_KINGPIN
@ KO_KINGPIN
Definition
mncount.h:56
SELFDESTRUCT_TOTAL
@ SELFDESTRUCT_TOTAL
Definition
mncount.h:44
DISASTER_MASTER
@ DISASTER_MASTER
Definition
mncount.h:58
SINGLEPLAYER_TIME
@ SINGLEPLAYER_TIME
Definition
mncount.h:32
VS_PLAY_MATCH_TOTAL
@ VS_PLAY_MATCH_TOTAL
Definition
mncount.h:35
NO_DEFENSE_NELLY
@ NO_DEFENSE_NELLY
Definition
mncount.h:57
TROPHY_TOTAL
@ TROPHY_TOTAL
Definition
mncount.h:47
TOTAL_DAMAGE
@ TOTAL_DAMAGE
Definition
mncount.h:42
SMASH_CHAMP
@ SMASH_CHAMP
Definition
mncount.h:52
POWER_COUNT
@ POWER_COUNT
Definition
mncount.h:29
KO_TOTAL
@ KO_TOTAL
Definition
mncount.h:43
VS_PLAY_TIME
@ VS_PLAY_TIME
Definition
mncount.h:33
STOCK_MATCH_TOTAL
@ STOCK_MATCH_TOTAL
Definition
mncount.h:37
NAME_TOTAL
@ NAME_TOTAL
Definition
mncount.h:48
AVAILABLE_CHARACTERS
@ AVAILABLE_CHARACTERS
Definition
mncount.h:45
BONUS_MATCH_TOTAL
@ BONUS_MATCH_TOTAL
Definition
mncount.h:39
SMASH_SAP
@ SMASH_SAP
Definition
mncount.h:53
SHORTEST_TIME
@ SHORTEST_TIME
Definition
mncount.h:51
VS_PLAY_CONTESTANTS
@ VS_PLAY_CONTESTANTS
Definition
mncount.h:40
POWER_TIME
@ POWER_TIME
Definition
mncount.h:30
SLUG_MEISTER
@ SLUG_MEISTER
Definition
mncount.h:54
TIME_MATCH_TOTAL
@ TIME_MATCH_TOTAL
Definition
mncount.h:36
AVAILABLE_MAPS
@ AVAILABLE_MAPS
Definition
mncount.h:46
PUNCHING_BAG
@ PUNCHING_BAG
Definition
mncount.h:55
PLAY_TIME
@ PLAY_TIME
Definition
mncount.h:31
LONGEST_TIME
@ LONGEST_TIME
Definition
mncount.h:49
mnCount_GetSmashSap
u32 mnCount_GetSmashSap(SelectableCharacterKind)
Definition
mncount.c:208
mnCount_GetPunchingBag
u32 mnCount_GetPunchingBag(SelectableCharacterKind)
Definition
mncount.c:218
mnCount_8025072C
s32 mnCount_8025072C(CountEntry *entries, s32 start_idx, bool mode)
Definition
mncount.c:225
mnCount_GetSmashChamp
u32 mnCount_GetSmashChamp(SelectableCharacterKind)
Definition
mncount.c:203
mnCount_Create
void mnCount_Create(void)
Definition
mncount.c:795
fn_80251640
void fn_80251640(HSD_GObj *gobj)
Definition
mncount.c:744
MNCOUNT_VISIBLE_ROWS
#define MNCOUNT_VISIBLE_ROWS
Definition
mncount.h:11
mnCount_GetRowValue_Number
unsigned int mnCount_GetRowValue_Number(int)
Definition
mncount.c:427
mnCount_InitUserData
void mnCount_InitUserData(MnCountData *arg0)
Definition
mncount.c:772
mnCount_GetDisasterMaster
u32 mnCount_GetDisasterMaster(SelectableCharacterKind)
Definition
mncount.c:114
mnCount_8025035C
int mnCount_8025035C(s32 skip_count, u32(*get_val_func)(SelectableCharacterKind))
Definition
mncount.c:119
fn_802514B8
void fn_802514B8(HSD_GObj *gobj)
Definition
mncount.c:635
platform.h
types.h
SelectableCharacterKind
SelectableCharacterKind
Identifier for a single selectable character as seen in high-scores or on the CSS.
Definition
types.h:371
CountEntry
Definition
types.h:65
HSD_GObj
Definition
gobj.h:13
HSD_Text
Definition
sislib.h:46
MnCountData
Definition
mncount.h:13
MnCountData::expand_anim_duration
int expand_anim_duration
Definition
mncount.h:15
MnCountData::labels
HSD_Text * labels[MNCOUNT_VISIBLE_ROWS]
Definition
mncount.h:16
MnCountData::values
HSD_Text * values[MNCOUNT_VISIBLE_ROWS]
Definition
mncount.h:17
MnCountData::title
HSD_Text * title
Definition
mncount.h:18
MnCountData::scroll_pos
unsigned char scroll_pos
Definition
mncount.h:14
forward.h
src
melee
mn
mncount.h
Generated by
1.17.0