SSBM Decomp
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>
8
9#include <melee/mn/types.h>
10
11#define MNCOUNT_VISIBLE_ROWS 10
12
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
28typedef 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
60
65/* 25035C */ int
66mnCount_8025035C(s32 skip_count, u32 (*get_val_func)(SelectableCharacterKind));
71/* 25072C */ s32 mnCount_8025072C(CountEntry* entries, s32 start_idx,
72 bool mode);
73/* 25092C */ s32
74mnCount_8025092C(s32 rank, u32 (*getVal)(SelectableCharacterKind), bool mode);
75/* 250C7C */ SelectableCharacterKind
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);
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
unsigned long u32
Definition types.h:9
signed long s32
Definition types.h:8
struct lbl_803D5A4C_t entries[0x80C/sizeof(struct lbl_803D5A4C_t)]
Definition gm_16F1.static.h:71
HSD_GObj * gobj
Definition gm_19EF.c:73
u32 mnCount_GetNoDefenseNelly(SelectableCharacterKind)
Definition mncount.c:109
s32 mnCount_8025092C(s32 rank, u32(*getVal)(SelectableCharacterKind), bool mode)
Definition mncount.c:292
void fn_802514D8(HSD_GObj *gobj)
Definition mncount.c:697
void mnCount_HandleUserInput(HSD_GObj *gobj)
Definition mncount.c:577
u32 mnCount_GetKOKingpin(SelectableCharacterKind)
Definition mncount.c:104
u32 mnCount_GetSlugMeister(SelectableCharacterKind)
Definition mncount.c:213
SelectableCharacterKind mnCount_GetRowValue_Character(mnCount_row row)
Definition mncount.c:389
void mnCount_CreateRow(HSD_GObj *, int, mnCount_row)
Definition mncount.c:510
u32 mnCount_GetMatchTime(SelectableCharacterKind)
Definition mncount.c:99
void mnCount_UpdateArrowIndicators(HSD_GObj *gobj)
Definition mncount.c:605
mnCount_row
Definition mncount.h:28
@ COIN_MATCH_TOTAL
Definition mncount.h:38
@ MATCH_RESET_COUNTER
Definition mncount.h:41
@ SECOND_LONGEST_TIME
Definition mncount.h:50
@ COMBINED_VS_PLAY_TIME
Definition mncount.h:34
@ KO_KINGPIN
Definition mncount.h:56
@ SELFDESTRUCT_TOTAL
Definition mncount.h:44
@ DISASTER_MASTER
Definition mncount.h:58
@ SINGLEPLAYER_TIME
Definition mncount.h:32
@ VS_PLAY_MATCH_TOTAL
Definition mncount.h:35
@ NO_DEFENSE_NELLY
Definition mncount.h:57
@ TROPHY_TOTAL
Definition mncount.h:47
@ TOTAL_DAMAGE
Definition mncount.h:42
@ SMASH_CHAMP
Definition mncount.h:52
@ POWER_COUNT
Definition mncount.h:29
@ KO_TOTAL
Definition mncount.h:43
@ VS_PLAY_TIME
Definition mncount.h:33
@ STOCK_MATCH_TOTAL
Definition mncount.h:37
@ NAME_TOTAL
Definition mncount.h:48
@ AVAILABLE_CHARACTERS
Definition mncount.h:45
@ BONUS_MATCH_TOTAL
Definition mncount.h:39
@ SMASH_SAP
Definition mncount.h:53
@ SHORTEST_TIME
Definition mncount.h:51
@ VS_PLAY_CONTESTANTS
Definition mncount.h:40
@ POWER_TIME
Definition mncount.h:30
@ SLUG_MEISTER
Definition mncount.h:54
@ TIME_MATCH_TOTAL
Definition mncount.h:36
@ AVAILABLE_MAPS
Definition mncount.h:46
@ PUNCHING_BAG
Definition mncount.h:55
@ PLAY_TIME
Definition mncount.h:31
@ LONGEST_TIME
Definition mncount.h:49
u32 mnCount_GetSmashSap(SelectableCharacterKind)
Definition mncount.c:208
u32 mnCount_GetPunchingBag(SelectableCharacterKind)
Definition mncount.c:218
s32 mnCount_8025072C(CountEntry *entries, s32 start_idx, bool mode)
Definition mncount.c:225
u32 mnCount_GetSmashChamp(SelectableCharacterKind)
Definition mncount.c:203
void mnCount_Create(void)
Definition mncount.c:795
void fn_80251640(HSD_GObj *gobj)
Definition mncount.c:744
#define MNCOUNT_VISIBLE_ROWS
Definition mncount.h:11
unsigned int mnCount_GetRowValue_Number(int)
Definition mncount.c:427
void mnCount_InitUserData(MnCountData *arg0)
Definition mncount.c:772
u32 mnCount_GetDisasterMaster(SelectableCharacterKind)
Definition mncount.c:114
int mnCount_8025035C(s32 skip_count, u32(*get_val_func)(SelectableCharacterKind))
Definition mncount.c:119
void fn_802514B8(HSD_GObj *gobj)
Definition mncount.c:635
SelectableCharacterKind
Identifier for a single selectable character as seen in high-scores or on the CSS.
Definition types.h:371
Definition types.h:65
Definition gobj.h:13
Definition sislib.h:46
Definition mncount.h:13
int expand_anim_duration
Definition mncount.h:15
HSD_Text * labels[MNCOUNT_VISIBLE_ROWS]
Definition mncount.h:16
HSD_Text * values[MNCOUNT_VISIBLE_ROWS]
Definition mncount.h:17
HSD_Text * title
Definition mncount.h:18
unsigned char scroll_pos
Definition mncount.h:14