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 <placeholder.h>
5#include <platform.h>
6
7#include <baselib/forward.h>
8#include <melee/mn/forward.h>
9
10#define MNCOUNT_VISIBLE_ROWS 10
11
19
20#ifdef M2C
21#define GET_MNCOUNT(gobj) \
22 ((MnCountData*) HSD_GObjGetUserData((HSD_GObj*) gobj))
23#else
24#define GET_MNCOUNT(gobj) ((MnCountData*) HSD_GObjGetUserData(gobj))
25#endif
26
27typedef enum {
28 POWER_COUNT, // Power Count
29 POWER_TIME, // Power Time
30 PLAY_TIME, // Play Time
31 SINGLEPLAYER_TIME, // Single-Player Time
32 VS_PLAY_TIME, // VS. Play Time
33 COMBINED_VS_PLAY_TIME, // Combined VS. Play Time
34 VS_PLAY_MATCH_TOTAL, // VS. Play Match Total
35 TIME_MATCH_TOTAL, // Time Match Total
36 STOCK_MATCH_TOTAL, // Stock Match Total
37 COIN_MATCH_TOTAL, // Coin Match Total
38 BONUS_MATCH_TOTAL, // Bonus Match Total
39 VS_PLAY_CONTESTANTS, // VS. Play Contestants
40 MATCH_RESET_COUNTER, // Match Reset Counter
41 TOTAL_DAMAGE, // Total Damage
42 KO_TOTAL, // KO Total
43 SELFDESTRUCT_TOTAL, // Self-Destruct Total
44 AVAILABLE_CHARACTERS, // Available Characters
45 AVAILABLE_MAPS, // Available Maps
46 TROPHY_TOTAL, // Trophy Total
47 NAME_TOTAL, // Name Total
48 LONGEST_TIME, // Longest Time
49 SECOND_LONGEST_TIME, // 2nd Longest Time
50 SHORTEST_TIME, // Shortest Time
51 SMASH_CHAMP, // Smash Champ
52 SMASH_SAP, // Smash Sap
53 SLUG_MEISTER, // Slug Meister
54 PUNCHING_BAG, // Punching Bag
55 KO_KINGPIN, // KO Kingpin
56 NO_DEFENSE_NELLY, // No-Defense Nelly
57 DISASTER_MASTER, // Disaster Master
59
60/* 2502CC */ u32 mnCount_GetMatchTime(s32);
61/* 2502F0 */ u32 mnCount_GetKOKingpin(s32);
62/* 250314 */ u32 mnCount_GetNoDefenseNelly(s32);
63/* 250338 */ u32 mnCount_GetDisasterMaster(s32);
64/* 25035C */ int mnCount_8025035C(s32 skip_count, u32 (*get_val_func)(s32));
65/* 25069C */ u32 mnCount_GetSmashChamp(s32);
66/* 2506C0 */ u32 mnCount_GetSmashSap(s32);
67/* 2506E4 */ u32 mnCount_GetSlugMeister(s32);
68/* 250708 */ u32 mnCount_GetPunchingBag(s32);
69/* 25072C */ s32 mnCount_8025072C(CountEntry* entries, s32 start_idx,
70 bool mode);
71/* 25092C */ s32 mnCount_8025092C(s32 rank, u32 (*getVal)(s32), bool mode);
72/* 250C7C */ int mnCount_GetRowValue_Character(mnCount_row row);
73/* 250DE4 */ unsigned int mnCount_GetRowValue_Number(int);
74/* 250FF8 */ void mnCount_CreateRow(HSD_GObj*, int, mnCount_row);
75/* 251278 */ void mnCount_HandleUserInput(HSD_GObj* gobj);
76/* 2513F4 */ void mnCount_UpdateArrowIndicators(HSD_GObj* gobj);
77/* 2514B8 */ void fn_802514B8(HSD_GObj* gobj);
78/* 2514D8 */ void fn_802514D8(HSD_GObj* gobj);
79/* 251640 */ void fn_80251640(HSD_GObj* gobj);
80/* 2517E0 */ void mnCount_InitUserData(MnCountData* arg0);
81/* 25186C */ void mnCount_Create(void);
82
83#endif
signed long s32
Definition hsd_3B2B.h:1
s32 mnCount_8025092C(s32 rank, u32(*getVal)(s32), bool mode)
Definition mncount.c:319
void fn_802514D8(HSD_GObj *gobj)
Definition mncount.c:635
void mnCount_HandleUserInput(HSD_GObj *gobj)
Definition mncount.c:572
void mnCount_CreateRow(HSD_GObj *, int, mnCount_row)
Definition mncount.c:515
u32 mnCount_GetMatchTime(s32)
Definition mncount.c:132
void mnCount_UpdateArrowIndicators(HSD_GObj *gobj)
Definition mncount.c:600
mnCount_row
Definition mncount.h:27
@ COIN_MATCH_TOTAL
Definition mncount.h:37
@ MATCH_RESET_COUNTER
Definition mncount.h:40
@ SECOND_LONGEST_TIME
Definition mncount.h:49
@ COMBINED_VS_PLAY_TIME
Definition mncount.h:33
@ KO_KINGPIN
Definition mncount.h:55
@ SELFDESTRUCT_TOTAL
Definition mncount.h:43
@ DISASTER_MASTER
Definition mncount.h:57
@ SINGLEPLAYER_TIME
Definition mncount.h:31
@ VS_PLAY_MATCH_TOTAL
Definition mncount.h:34
@ NO_DEFENSE_NELLY
Definition mncount.h:56
@ TROPHY_TOTAL
Definition mncount.h:46
@ TOTAL_DAMAGE
Definition mncount.h:41
@ SMASH_CHAMP
Definition mncount.h:51
@ POWER_COUNT
Definition mncount.h:28
@ KO_TOTAL
Definition mncount.h:42
@ VS_PLAY_TIME
Definition mncount.h:32
@ STOCK_MATCH_TOTAL
Definition mncount.h:36
@ NAME_TOTAL
Definition mncount.h:47
@ AVAILABLE_CHARACTERS
Definition mncount.h:44
@ BONUS_MATCH_TOTAL
Definition mncount.h:38
@ SMASH_SAP
Definition mncount.h:52
@ SHORTEST_TIME
Definition mncount.h:50
@ VS_PLAY_CONTESTANTS
Definition mncount.h:39
@ POWER_TIME
Definition mncount.h:29
@ SLUG_MEISTER
Definition mncount.h:53
@ TIME_MATCH_TOTAL
Definition mncount.h:35
@ AVAILABLE_MAPS
Definition mncount.h:45
@ PUNCHING_BAG
Definition mncount.h:54
@ PLAY_TIME
Definition mncount.h:30
@ LONGEST_TIME
Definition mncount.h:48
s32 mnCount_8025072C(CountEntry *entries, s32 start_idx, bool mode)
Definition mncount.c:251
int mnCount_8025035C(s32 skip_count, u32(*get_val_func)(s32))
Definition mncount.c:152
u32 mnCount_GetKOKingpin(s32)
Definition mncount.c:137
u32 mnCount_GetNoDefenseNelly(s32)
Definition mncount.c:142
u32 mnCount_GetSmashChamp(s32)
Definition mncount.c:229
void mnCount_Create(void)
Definition mncount.c:762
u32 mnCount_GetDisasterMaster(s32)
Definition mncount.c:147
void fn_80251640(HSD_GObj *gobj)
Definition mncount.c:689
#define MNCOUNT_VISIBLE_ROWS
Definition mncount.h:10
unsigned int mnCount_GetRowValue_Number(int)
Definition mncount.c:418
u32 mnCount_GetPunchingBag(s32)
Definition mncount.c:244
u32 mnCount_GetSlugMeister(s32)
Definition mncount.c:239
void mnCount_InitUserData(MnCountData *arg0)
Definition mncount.c:746
u32 mnCount_GetSmashSap(s32)
Definition mncount.c:234
int mnCount_GetRowValue_Character(mnCount_row row)
Definition mncount.c:379
void fn_802514B8(HSD_GObj *gobj)
Definition mncount.c:630
size 0x8
Definition types.h:21
was using this to try and fix some matches, unsuccessfully
Definition gobj.h:26
Definition sislib.h:47
Definition mncount.h:12
int expand_anim_duration
Definition mncount.h:14
HSD_Text * labels[MNCOUNT_VISIBLE_ROWS]
Definition mncount.h:15
HSD_Text * values[MNCOUNT_VISIBLE_ROWS]
Definition mncount.h:16
HSD_Text * title
Definition mncount.h:17
unsigned char scroll_pos
Definition mncount.h:13