Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
mario_misc.h
Go to the documentation of this file.
1 #ifndef _MARIO_MISC_H
2 #define _MARIO_MISC_H
3 
4 #include "types.h"
5 
6 #define TOAD_STAR_1_REQUIREMENT 12
7 #define TOAD_STAR_2_REQUIREMENT 25
8 #define TOAD_STAR_3_REQUIREMENT 35
9 
10 #define TOAD_STAR_1_DIALOG 82
11 #define TOAD_STAR_2_DIALOG 76
12 #define TOAD_STAR_3_DIALOG 83
13 
14 #define TOAD_STAR_1_DIALOG_AFTER 154
15 #define TOAD_STAR_2_DIALOG_AFTER 155
16 #define TOAD_STAR_3_DIALOG_AFTER 156
17 
18 
25 };
26 
32 };
33 
35 {
36  u8 filler0[0x1C];
38 };
39 
41 {
42  u8 filler0[2];
44  u8 filler4[0x18-0x4];
46 };
47 
49 {
50  struct GraphNode node;
51  u8 filler14[0x4];
55 };
56 
58 {
59  struct GraphNode node;
60  u8 filler14[0x4];
62 };
63 
65 {
66  struct GraphNode node;
67  u8 filler14[4];
71 };
72 
74 {
75  struct GraphNode node;
76  u8 filler14[0x4];
78 };
79 
81 {
82  struct GraphNode node;
83  u8 filler14[0x4];
85 };
86 
88 {
89  struct GraphNode node;
90  u8 filler14[4];
92 };
93 
95 {
96  struct GraphNode node;
97  u8 filler14[4];
99 };
100 
102 {
103  struct GraphNode node;
104  u8 filler14[4];
106 };
107 
109 {
110  struct GraphNode node;
111  u8 filler14[4];
113  struct Object *unk1C;
115 };
116 
118 {
119  struct GraphNode node;
120  u8 filler14[4];
122 };
123 
124 extern struct GraphNodeObject D_80339FE0;
125 extern struct MarioBodyState gBodyStates[2];
126 
127 extern Gfx *Geo18_802764B0(s32 a, struct GraphNode *b, Mat4 *c);
128 extern void bhvToadMessage_loop(void);
129 extern void bhvToadMessage_init(void);
130 extern void bhvUnlockDoorStar_init(void);
131 extern void bhvUnlockDoorStar_loop(void);
132 extern Gfx *Geo18_802770A4(s32 a, struct GraphNode *b, UNUSED Mat4 *c);
133 extern s32 geo_switch_mario_stand_run(s32 run, struct GraphNode *node, UNUSED Mat4 *c);
134 extern s32 geo_switch_mario_eyes(s32 run, struct GraphNode *node, UNUSED Mat4 *c);
135 extern Gfx *Geo18_80277294(s32 a, struct GraphNode *b, UNUSED Mat4 *c);
136 extern Gfx *Geo18_802773A4(s32 a, struct GraphNode *b, UNUSED Mat4 *c);
137 extern s32 geo_switch_mario_hand(s32 run, struct GraphNode *node, UNUSED Mat4 *c);
138 extern Gfx *Geo18_802775CC(s32 a, struct GraphNode *b, UNUSED Mat4 *c);
139 extern s32 geo_switch_mario_cap_effect(s32 run, struct GraphNode *node, UNUSED Mat4 *c);
140 extern s32 geo_switch_mario_cap_on_off(s32 run, struct GraphNode *node, UNUSED Mat4 *c);
141 extern Gfx *Geo18_80277824(s32 a, struct GraphNode *b, UNUSED Mat4 *c);
142 extern Gfx *Geo1C_8027795C(s32 a, struct GraphNode *b, Mat4 *c);
143 extern Gfx *geo_render_mirror_mario(s32 a, struct GraphNode *b, UNUSED Mat4 *c);
145 
146 #endif /* _MARIO_MISC_H */
struct MarioBodyState gBodyStates[2]
Definition: mario_misc.c:31
Gfx * geo_render_mirror_mario(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:462
s16 unk1C
Definition: mario_misc.h:70
Definition: mario_misc.h:28
Gfx * Geo18_802770A4(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:262
Definition: mario_misc.h:87
Definition: mario_misc.h:117
s32 geo_switch_mario_cap_effect(s32 run, struct GraphNode *node, UNUSED Mat4 *c)
Definition: mario_misc.c:384
signed short int s16
Definition: ultratypes.h:13
Vec3s unk18
Definition: mario_misc.h:84
Gfx * Geo18_802775CC(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:365
Definition: mario_misc.h:23
Definition: types.h:77
s16 unk1E
Definition: mario_misc.h:54
Definition: mario_misc.h:48
s32 geo_switch_mario_stand_run(s32 run, struct GraphNode *node, UNUSED Mat4 *c)
Definition: mario_misc.c:277
Definition: gbi_old.h:59
Definition: mario_misc.h:40
s16 unk18
Definition: mario_misc.h:68
struct GraphNodeObject D_80339FE0
Definition: mario_misc.c:30
Definition: mario_misc.h:20
s16 Vec3s[3]
Definition: types.h:24
Definition: types.h:100
Definition: mario_misc.h:29
Definition: types.h:208
Definition: mario_misc.h:24
Definition: mario_misc.h:94
s32 geo_switch_mario_cap_on_off(s32 run, struct GraphNode *node, UNUSED Mat4 *c)
Definition: mario_misc.c:393
Gfx * Geo18_80277294(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:306
Gfx * Geo18_802764B0(s32 a, struct GraphNode *b, Mat4 *c)
Definition: mario_misc.c:40
s32 unk18
Definition: mario_misc.h:45
void bhvUnlockDoorStar_init(void)
Definition: mario_misc.c:177
Definition: mario_misc.h:30
float f32
Definition: ultratypes.h:29
Gfx * geo_mirror_mario_backface_culling(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:504
s32 unk18
Definition: mario_misc.h:61
s32 unk18
Definition: mario_misc.h:112
f32 unk1C
Definition: mario_misc.h:37
Definition: mario_misc.h:80
at end of structure union member declaration In standard C each member declaration must be terminated by a
Definition: err.english.cc:690
Definition: types.h:122
s32 unk18
Definition: mario_misc.h:77
s32 unk18
Definition: mario_misc.h:91
Definition: mario_misc.h:57
s32 geo_switch_mario_hand(s32 run, struct GraphNode *node, UNUSED Mat4 *c)
Definition: mario_misc.c:348
Definition: mario_misc.h:21
Definition: mario_misc.h:108
s16 unk1C
Definition: mario_misc.h:53
Definition: mario_misc.h:64
void bhvToadMessage_init(void)
Definition: mario_misc.c:133
UnlockDoorStarStates
Definition: mario_misc.h:27
Definition: mario_misc.h:101
u8 filler0[0x1C]
Definition: mario_misc.h:36
struct Object * unk1C
Definition: mario_misc.h:113
Gfx * Geo1C_8027795C(s32 a, struct GraphNode *b, Mat4 *c)
s16 unk18
Definition: mario_misc.h:105
f32 unk18
Definition: mario_misc.h:52
unsigned char u8
Definition: ultratypes.h:12
Definition: mario_misc.h:22
Definition: mario_misc.h:31
void bhvUnlockDoorStar_loop(void)
Definition: mario_misc.c:188
s32 unk18
Definition: mario_misc.h:121
f32 Mat4[4][4]
Definition: types.h:29
#define UNUSED
Definition: macros.h:13
s16 unk1A
Definition: mario_misc.h:69
signed int s32
Definition: ultratypes.h:15
u32 unk18
Definition: mario_misc.h:98
Vec3s unk20
Definition: mario_misc.h:114
s32 geo_switch_mario_eyes(s32 run, struct GraphNode *node, UNUSED Mat4 *c)
Definition: mario_misc.c:287
Gfx * Geo18_80277824(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:413
s16 unk2
Definition: mario_misc.h:43
Definition: mario_misc.h:73
unsigned int u32
Definition: ultratypes.h:16
Definition: mario_misc.h:34
ToadMessageStates
Definition: mario_misc.h:19
Gfx * Geo18_802773A4(s32 a, struct GraphNode *b, UNUSED Mat4 *c)
Definition: mario_misc.c:324
void bhvToadMessage_loop(void)
Definition: mario_misc.c:110