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 "mn/types.h"
8
9#include <baselib/forward.h>
10#include <melee/mn/forward.h>
11
12#define MNCOUNT_VISIBLE_ROWS 10
13
21
22#ifdef M2C
23#define GET_MNCOUNT(gobj) \
24 ((MnCountData*) HSD_GObjGetUserData((HSD_GObj*) gobj))
25#else
26#define GET_MNCOUNT(gobj) ((MnCountData*) HSD_GObjGetUserData(gobj))
27#endif
28
29typedef enum {
30 POWER_COUNT, // Power Count
31 POWER_TIME, // Power Time
32 PLAY_TIME, // Play Time
33 SINGLEPLAYER_TIME, // Single-Player Time
34 VS_PLAY_TIME, // VS. Play Time
35 COMBINED_VS_PLAY_TIME, // Combined VS. Play Time
36 VS_PLAY_MATCH_TOTAL, // VS. Play Match Total
37 TIME_MATCH_TOTAL, // Time Match Total
38 STOCK_MATCH_TOTAL, // Stock Match Total
39 COIN_MATCH_TOTAL, // Coin Match Total
40 BONUS_MATCH_TOTAL, // Bonus Match Total
41 VS_PLAY_CONTESTANTS, // VS. Play Contestants
42 MATCH_RESET_COUNTER, // Match Reset Counter
43 TOTAL_DAMAGE, // Total Damage
44 KO_TOTAL, // KO Total
45 SELFDESTRUCT_TOTAL, // Self-Destruct Total
46 AVAILABLE_CHARACTERS, // Available Characters
47 AVAILABLE_MAPS, // Available Maps
48 TROPHY_TOTAL, // Trophy Total
49 NAME_TOTAL, // Name Total
50 LONGEST_TIME, // Longest Time
51 SECOND_LONGEST_TIME, // 2nd Longest Time
52 SHORTEST_TIME, // Shortest Time
53 SMASH_CHAMP, // Smash Champ
54 SMASH_SAP, // Smash Sap
55 SLUG_MEISTER, // Slug Meister
56 PUNCHING_BAG, // Punching Bag
57 KO_KINGPIN, // KO Kingpin
58 NO_DEFENSE_NELLY, // No-Defense Nelly
59 DISASTER_MASTER, // Disaster Master
61
66/* 25035C */ int
67mnCount_8025035C(s32 skip_count, u32 (*get_val_func)(SelectableCharacterKind));
72/* 25072C */ s32 mnCount_8025072C(CountEntry* entries, s32 start_idx,
73 bool mode);
74/* 25092C */ s32
75mnCount_8025092C(s32 rank, u32 (*getVal)(SelectableCharacterKind), bool mode);
76/* 250C7C */ SelectableCharacterKind
78/* 250DE4 */ unsigned int mnCount_GetRowValue_Number(int);
79/* 250FF8 */ void mnCount_CreateRow(HSD_GObj*, int, mnCount_row);
80/* 251278 */ void mnCount_HandleUserInput(HSD_GObj* gobj);
81/* 2513F4 */ void mnCount_UpdateArrowIndicators(HSD_GObj* gobj);
82/* 2514B8 */ void fn_802514B8(HSD_GObj* gobj);
83/* 2514D8 */ void fn_802514D8(HSD_GObj* gobj);
84/* 251640 */ void fn_80251640(HSD_GObj* gobj);
85/* 2517E0 */ void mnCount_InitUserData(MnCountData* arg0);
86/* 25186C */ void mnCount_Create(void);
87
88#endif
unsigned long u32
Definition types.h:9
signed long s32
Definition hsd_3B2B.h:1
u32 mnCount_GetNoDefenseNelly(SelectableCharacterKind)
Definition mncount.c:129
s32 mnCount_8025092C(s32 rank, u32(*getVal)(SelectableCharacterKind), bool mode)
Definition mncount.c:312
void fn_802514D8(HSD_GObj *gobj)
Definition mncount.c:717
void mnCount_HandleUserInput(HSD_GObj *gobj)
Definition mncount.c:597
u32 mnCount_GetKOKingpin(SelectableCharacterKind)
Definition mncount.c:124
u32 mnCount_GetSlugMeister(SelectableCharacterKind)
Definition mncount.c:233
SelectableCharacterKind mnCount_GetRowValue_Character(mnCount_row row)
Definition mncount.c:409
void mnCount_CreateRow(HSD_GObj *, int, mnCount_row)
Definition mncount.c:530
u32 mnCount_GetMatchTime(SelectableCharacterKind)
Definition mncount.c:119
void mnCount_UpdateArrowIndicators(HSD_GObj *gobj)
Definition mncount.c:625
mnCount_row
Definition mncount.h:29
@ COIN_MATCH_TOTAL
Definition mncount.h:39
@ MATCH_RESET_COUNTER
Definition mncount.h:42
@ SECOND_LONGEST_TIME
Definition mncount.h:51
@ COMBINED_VS_PLAY_TIME
Definition mncount.h:35
@ KO_KINGPIN
Definition mncount.h:57
@ SELFDESTRUCT_TOTAL
Definition mncount.h:45
@ DISASTER_MASTER
Definition mncount.h:59
@ SINGLEPLAYER_TIME
Definition mncount.h:33
@ VS_PLAY_MATCH_TOTAL
Definition mncount.h:36
@ NO_DEFENSE_NELLY
Definition mncount.h:58
@ TROPHY_TOTAL
Definition mncount.h:48
@ TOTAL_DAMAGE
Definition mncount.h:43
@ SMASH_CHAMP
Definition mncount.h:53
@ POWER_COUNT
Definition mncount.h:30
@ KO_TOTAL
Definition mncount.h:44
@ VS_PLAY_TIME
Definition mncount.h:34
@ STOCK_MATCH_TOTAL
Definition mncount.h:38
@ NAME_TOTAL
Definition mncount.h:49
@ AVAILABLE_CHARACTERS
Definition mncount.h:46
@ BONUS_MATCH_TOTAL
Definition mncount.h:40
@ SMASH_SAP
Definition mncount.h:54
@ SHORTEST_TIME
Definition mncount.h:52
@ VS_PLAY_CONTESTANTS
Definition mncount.h:41
@ POWER_TIME
Definition mncount.h:31
@ SLUG_MEISTER
Definition mncount.h:55
@ TIME_MATCH_TOTAL
Definition mncount.h:37
@ AVAILABLE_MAPS
Definition mncount.h:47
@ PUNCHING_BAG
Definition mncount.h:56
@ PLAY_TIME
Definition mncount.h:32
@ LONGEST_TIME
Definition mncount.h:50
u32 mnCount_GetSmashSap(SelectableCharacterKind)
Definition mncount.c:228
u32 mnCount_GetPunchingBag(SelectableCharacterKind)
Definition mncount.c:238
s32 mnCount_8025072C(CountEntry *entries, s32 start_idx, bool mode)
Definition mncount.c:245
u32 mnCount_GetSmashChamp(SelectableCharacterKind)
Definition mncount.c:223
void mnCount_Create(void)
Definition mncount.c:815
void fn_80251640(HSD_GObj *gobj)
Definition mncount.c:764
#define MNCOUNT_VISIBLE_ROWS
Definition mncount.h:12
unsigned int mnCount_GetRowValue_Number(int)
Definition mncount.c:447
void mnCount_InitUserData(MnCountData *arg0)
Definition mncount.c:792
u32 mnCount_GetDisasterMaster(SelectableCharacterKind)
Definition mncount.c:134
int mnCount_8025035C(s32 skip_count, u32(*get_val_func)(SelectableCharacterKind))
Definition mncount.c:139
void fn_802514B8(HSD_GObj *gobj)
Definition mncount.c:655
SelectableCharacterKind
Definition types.h:348
Definition types.h:63
Definition gobj.h:24
Definition sislib.h:46
Definition mncount.h:14
int expand_anim_duration
Definition mncount.h:16
HSD_Text * labels[MNCOUNT_VISIBLE_ROWS]
Definition mncount.h:17
HSD_Text * values[MNCOUNT_VISIBLE_ROWS]
Definition mncount.h:18
HSD_Text * title
Definition mncount.h:19
unsigned char scroll_pos
Definition mncount.h:15