SSBM Decomp
Loading...
Searching...
No Matches
fighter.h
Go to the documentation of this file.
1#ifndef GALE01_0679B0
2#define GALE01_0679B0
3
4#include <placeholder.h>
5#include <platform.h>
6
7#include "ft/inlines.h" // IWYU pragma: export
8#include "ft/types.h"
9
10#include <baselib/forward.h>
11
12#include <dolphin/mtx.h>
13#include <baselib/objalloc.h>
14
15extern struct Fighter_804D64FC_t {
17 u8 pad_x4[8];
19 u8 pad_x10[0x10];
20 float* x20;
22
23struct plAllocInfo;
24
25/* 0679B0 */ void Fighter_800679B0(void);
26/* 067A84 */ void Fighter_FirstInitialize_80067A84(void);
27/* 067ABC */ void Fighter_LoadCommonData(void);
28/* 067BB4 */ void Fighter_UpdateModelScale(Fighter_GObj* gobj);
29/* 067C98 */ void Fighter_UnkInitReset_80067C98(Fighter*);
30/* 068354 */ void Fighter_UnkProcessDeath_80068354(Fighter_GObj* gobj);
31/* 0686E4 */ void Fighter_UnkUpdateCostumeJoint_800686E4(Fighter_GObj* gobj);
33/* 068854 */ void Fighter_ResetInputData_80068854(Fighter_GObj* gobj);
34/* 068914 */ void Fighter_UnkInitLoad_80068914(Fighter_GObj* gobj,
35 struct plAllocInfo* argdata);
36/* 068E40 */ u32 Fighter_NewSpawn_80068E40(void);
37/* 068E64 */ void Fighter_80068E64(Fighter_GObj* gobj);
38/* 068E98 */ Fighter_GObj* Fighter_Create(struct plAllocInfo* input);
39/* 0693AC */ void Fighter_ChangeMotionState(Fighter_GObj* gobj,
40 FtMotionId msid, MotionFlags flags,
41 f32 anim_start, f32 anim_speed,
42 f32 anim_blend,
43 Fighter_GObj* arg3);
44/* 06A1BC */ void Fighter_8006A1BC(Fighter_GObj* gobj);
45/* 06A360 */ void Fighter_8006A360(Fighter_GObj* gobj);
46/* 06ABA0 */ void Fighter_8006ABA0(Fighter_GObj* gobj);
47/* 06ABEC */ void Fighter_UnkIncrementCounters_8006ABEC(Fighter_GObj* gobj);
48/* 06AD10 */ void Fighter_Spaghetti_8006AD10(Fighter_GObj* gobj);
49/* 06B82C */ void Fighter_procUpdate(Fighter_GObj* gobj);
50/* 06C0F0 */ void Fighter_UnkApplyTransformation_8006C0F0(Fighter_GObj* gobj);
51/* 06C27C */ void Fighter_8006C27C(Fighter_GObj* gobj);
52/* 06C5F4 */ void Fighter_8006C5F4(Fighter_GObj* gobj);
53/* 06C624 */ void Fighter_CallAcessoryCallbacks_8006C624(Fighter_GObj* gobj);
54/* 06C80C */ void Fighter_8006C80C(Fighter_GObj* gobj);
55/* 06CA5C */ void Fighter_UnkProcessGrab_8006CA5C(Fighter_GObj* gobj);
56/* 06CB94 */ void Fighter_8006CB94(Fighter_GObj* gobj);
57/* 06CC30 */ void Fighter_UnkTakeDamage_8006CC30(Fighter* fp,
58 float damage_amount);
59/* 06CC7C */ void Fighter_TakeDamage_8006CC7C(Fighter*, float);
60/* 06CDA4 */ void Fighter_8006CDA4(Fighter* fp, s32 arg1, s32 arg2);
61/* 06CF5C */ void Fighter_8006CF5C(Fighter* fp, s32 arg1);
62/* 06CFBC */ void Fighter_UnkSetFlag_8006CFBC(Fighter_GObj* gobj);
63/* 06CFE0 */ void Fighter_8006CFE0(Fighter_GObj* gobj);
64/* 06D044 */ void Fighter_UnkRecursiveFunc_8006D044(Fighter_GObj* gobj);
65/* 06D10C */ void Fighter_8006D10C(Fighter_GObj* gobj);
66/* 06D1EC */ void Fighter_ProcessHit_8006D1EC(Fighter_GObj* gobj);
67/* 06D9AC */ void Fighter_8006D9AC(Fighter_GObj* gobj);
68/* 06D9EC */ void Fighter_UnkCallCameraCallback_8006D9EC(Fighter_GObj* gobj);
69/* 06DA4C */ void Fighter_8006DA4C(Fighter_GObj* gobj);
70/* 06DABC */ void Fighter_Unload_8006DABC(void* user_data);
71/* 458FD0 */ extern HSD_ObjAllocData fighter_alloc_data;
77/* 4598B8 */ extern ftData* gFtDataList[FTKIND_MAX];
78/* 4D6500 */ extern UNK_T Fighter_804D6500;
79/* 4D6504 */ extern HSD_Joint* Fighter_804D6504;
80/* 4D6508 */ extern u8* Fighter_804D6508;
81/* 4D650C */ extern u8* Fighter_804D650C;
82/* 4D6510 */ extern UNK_T Fighter_804D6510;
83/* 4D6514 */ extern HSD_Joint* Fighter_804D6514;
84
85/* 4D6518 */ extern struct Fighter_804D6518_t {
86 f32 x0;
87 f32 x4;
89
90/* 4D651C */ extern struct Fighter_804D651C_t {
91 f32 x0;
92 f32 x4;
93 f32 x8;
94 f32 xC;
95 f32 x10;
96 f32 x14;
97 f32 x18;
98 f32 x1C;
99 f32 x20;
101
102/* 4D6520 */ extern struct Fighter_804D6520_t {
103 f32 x0;
104 f32 x4;
105 f32 x8;
106 f32 xC;
107 f32 x10;
108 f32 x14;
109 f32 x18;
110 f32 x1C;
111 f32 x20;
112 f32 x24;
113 f32 x28;
114 f32 x2C;
115 f32 x30;
116 f32 x34;
117 f32 x38;
119
120/* 4D6524 */ extern struct Fighter_804D6524_t {
122 float x0;
123 float x4;
124 float x8;
125 float xC;
126 float x10;
127 float x14;
128 float x18;
129 float x1C;
130 float x20;
131 float x24;
132 float x28;
133 float x2C;
134 float x30;
135 float x34;
136 float x38;
137 float x3C;
138 float x40;
139 float x44;
140 float x48;
141 float x4C;
142 float x50;
143 float x54;
144 float x58;
145 float x5C;
146 float x60;
147 float x64;
148 float x68;
149 float x6C;
150 float x70;
151 float x74;
152 float x78;
153 float x7C;
154 float x80;
155 float x84;
156 float x88;
157 float x8C;
158 float x90;
159 float x94;
160 float x98;
162/* 4D6528 */ extern struct Fighter_804D6528_t {
163 Vec2* x0;
164 int x4;
166
167/* 4D6530 */ extern Vec2** Fighter_804D6530;
168/* 4D6534 */ extern UNK_T Fighter_804D6534;
169/* 4D6538 */ extern struct Fighter_804D653C_t* Fighter_804D6538;
170/* 4D653C */ extern struct Fighter_804D653C_t* Fighter_804D653C;
171/* 4D6540 */ extern struct Fighter_804D6540_t {
178 int x4;
180/* 4D6544 */ extern FighterPartsTable** ftPartsTable;
181/* 4D6548 */ extern float* Fighter_804D6548;
182/* 4D654C */ extern float (*Fighter_804D654C)[5];
183/* 4D6550 */ extern int** Fighter_804D6550;
184/* 4D6554 */ extern ftCommonData* p_ftCommonData;
185
186#endif
void Fighter_8006C5F4(Fighter_GObj *gobj)
Definition fighter.c:2503
void Fighter_8006A1BC(Fighter_GObj *gobj)
Definition fighter.c:1402
float(* Fighter_804D654C)[5]
Definition fighter.c:150
void Fighter_8006D9AC(Fighter_GObj *gobj)
Definition fighter.c:3039
void Fighter_8006DA4C(Fighter_GObj *gobj)
Definition fighter.c:3062
void Fighter_8006CF5C(Fighter *fp, s32 arg1)
Definition fighter.c:2697
void Fighter_UnkInitReset_80067C98(Fighter *)
Definition fighter.c:243
Fighter_GObj * Fighter_Create(struct plAllocInfo *input)
Definition fighter.c:857
void Fighter_80068E64(Fighter_GObj *gobj)
Definition fighter.c:832
void Fighter_ResetInputData_80068854(Fighter_GObj *gobj)
Definition fighter.c:609
void Fighter_UnkUpdateVecFromBones_8006876C(Fighter *fp)
Definition fighter.c:592
HSD_ObjAllocData fighter_alloc_data
Definition fighter.c:117
void Fighter_UnkApplyTransformation_8006C0F0(Fighter_GObj *gobj)
Definition fighter.c:2425
void Fighter_8006C80C(Fighter_GObj *gobj)
Definition fighter.c:2537
void Fighter_UnkRecursiveFunc_8006D044(Fighter_GObj *gobj)
Definition fighter.c:2735
struct Fighter_804D6528_t * Fighter_804D6528
Definition fighter.c:141
HSD_Joint * Fighter_804D6514
trophy platform model when characters spawn
Definition fighter.c:136
ftCommonData * p_ftCommonData
Definition fighter.c:152
struct Fighter_804D651C_t * Fighter_804D651C
metal modifiers - used in 0x800d105c
Definition fighter.c:138
HSD_ObjAllocData fighter_x59C_alloc_data
Definition fighter.c:122
HSD_Joint * Fighter_804D6504
Definition fighter.c:132
void Fighter_UpdateModelScale(Fighter_GObj *gobj)
Definition fighter.c:224
struct Fighter_804D6518_t * Fighter_804D6518
Definition fighter.c:137
void Fighter_UnkProcessGrab_8006CA5C(Fighter_GObj *gobj)
Definition fighter.c:2574
void Fighter_UnkSetFlag_8006CFBC(Fighter_GObj *gobj)
Definition fighter.c:2706
Vec2 ** Fighter_804D6530
Definition fighter.c:143
UNK_T Fighter_804D6534
Definition fighter.c:144
void Fighter_8006D10C(Fighter_GObj *gobj)
Definition fighter.c:2780
void Fighter_CallAcessoryCallbacks_8006C624(Fighter_GObj *gobj)
Definition fighter.c:2511
UNK_T Fighter_804D6500
Definition fighter.c:131
struct Fighter_804D64FC_t * Fighter_804D64FC
Definition fighter.c:130
struct Fighter_804D653C_t * Fighter_804D653C
Definition fighter.c:146
ftData * gFtDataList[FTKIND_MAX]
struct Fighter_804D6520_t * Fighter_804D6520
bunnyhood modifiers - used in 0x800d105c
Definition fighter.c:139
void Fighter_ChangeMotionState(Fighter_GObj *gobj, FtMotionId msid, MotionFlags flags, f32 anim_start, f32 anim_speed, f32 anim_blend, Fighter_GObj *arg3)
Definition fighter.c:940
int ** Fighter_804D6550
Definition fighter.c:151
UNK_T Fighter_804D6510
Definition fighter.c:135
void Fighter_TakeDamage_8006CC7C(Fighter *, float)
Definition fighter.c:2633
HSD_ObjAllocData fighter_parts_alloc_data
Definition fighter.c:119
void Fighter_800679B0(void)
Definition fighter.c:154
u8 * Fighter_804D650C
Definition fighter.c:134
void Fighter_FirstInitialize_80067A84(void)
Definition fighter.c:184
u8 * Fighter_804D6508
Definition fighter.c:133
void Fighter_8006ABA0(Fighter_GObj *gobj)
Definition fighter.c:1712
HSD_ObjAllocData fighter_x2040_alloc_data
Definition fighter.c:121
HSD_ObjAllocData fighter_dat_attrs_alloc_data
Definition fighter.c:118
FighterPartsTable ** ftPartsTable
Definition fighter.c:148
HSD_ObjAllocData fighter_dobj_list_alloc_data
Definition fighter.c:120
void Fighter_LoadCommonData(void)
Definition fighter.c:190
struct Fighter_804D6540_t ** Fighter_804D6540
Definition fighter.c:147
void Fighter_8006CFE0(Fighter_GObj *gobj)
Definition fighter.c:2715
void Fighter_UnkProcessDeath_80068354(Fighter_GObj *gobj)
Definition fighter.c:525
void Fighter_UnkIncrementCounters_8006ABEC(Fighter_GObj *gobj)
Definition fighter.c:1721
void Fighter_8006C27C(Fighter_GObj *gobj)
Definition fighter.c:2461
void Fighter_Spaghetti_8006AD10(Fighter_GObj *gobj)
Definition fighter.c:1785
void Fighter_UnkInitLoad_80068914(Fighter_GObj *gobj, struct plAllocInfo *argdata)
Definition fighter.c:694
struct Fighter_804D653C_t * Fighter_804D6538
Definition fighter.c:145
void Fighter_UnkTakeDamage_8006CC30(Fighter *fp, float damage_amount)
Definition fighter.c:2627
void Fighter_UnkUpdateCostumeJoint_800686E4(Fighter_GObj *gobj)
Definition fighter.c:576
struct Fighter_804D6524_t * Fighter_804D6524
fighter scale modifiers - used in 0x800d105c
Definition fighter.c:140
float * Fighter_804D6548
Definition fighter.c:149
void Fighter_ProcessHit_8006D1EC(Fighter_GObj *gobj)
Definition fighter.c:2795
void Fighter_procUpdate(Fighter_GObj *gobj)
Definition fighter.c:2132
void Fighter_8006A360(Fighter_GObj *gobj)
Definition fighter.c:1453
void Fighter_UnkCallCameraCallback_8006D9EC(Fighter_GObj *gobj)
Definition fighter.c:3050
u32 Fighter_NewSpawn_80068E40(void)
Definition fighter.c:823
void Fighter_8006CDA4(Fighter *fp, s32 arg1, s32 arg2)
https://decomp.me/scratch/9QvFG
Definition fighter.c:2657
void Fighter_8006CB94(Fighter_GObj *gobj)
Definition fighter.c:2606
void Fighter_Unload_8006DABC(void *user_data)
Definition fighter.c:3074
enum_t FtMotionId
Definition forward.h:14
@ FTKIND_MAX
Definition forward.h:109
u32 MotionFlags
Definition forward.h:36
#define UNK_T
Definition placeholder.h:32
Definition types.h:54
Definition fighter.h:15
u8 ** cmdscripts
Definition fighter.h:16
float * x20
Definition fighter.h:20
UNK_T * xC
Definition fighter.h:18
u8 pad_x10[0x10]
Definition fighter.h:19
u8 pad_x4[8]
Definition fighter.h:17
Definition fighter.h:85
f32 x0
gravity mult
Definition fighter.h:86
f32 x4
weight mult
Definition fighter.h:87
Definition fighter.h:90
f32 x18
weight
Definition fighter.h:97
f32 x20
wall jump y impulse
Definition fighter.h:99
f32 x0
Definition fighter.h:91
f32 x8
jump y impulse shorthop
Definition fighter.h:93
f32 x14
fast fall speed
Definition fighter.h:96
f32 x4
jump y impulse fullhop
Definition fighter.h:92
f32 xC
gravity
Definition fighter.h:94
f32 x10
fall speed
Definition fighter.h:95
f32 x1C
ledge jump y impulse
Definition fighter.h:98
Definition fighter.h:102
f32 x20
gravity
Definition fighter.h:111
f32 x28
fast fall speed
Definition fighter.h:113
f32 x10
jump x impulse
Definition fighter.h:107
f32 x30
ledge jump y impulse
Definition fighter.h:115
f32 x18
jump y impulse shorthop
Definition fighter.h:109
f32 xC
dash max speed
Definition fighter.h:106
f32 x1C
jump x max speed
Definition fighter.h:110
f32 x14
jump y impulse fullhop
Definition fighter.h:108
f32 x8
dash accel b
Definition fighter.h:105
f32 x38
wall jump y impulse
Definition fighter.h:117
f32 x4
dash accel a
Definition fighter.h:104
f32 x34
wall jump x impulse
Definition fighter.h:116
f32 x0
walk speed scale
Definition fighter.h:103
f32 x24
fall speed
Definition fighter.h:112
f32 x2C
ledge jump x impulse
Definition fighter.h:114
Definition fighter.h:120
float x4
damage dealt mult
Definition fighter.h:123
float x30
gravity mult
Definition fighter.h:134
float x24
jump squat mult
Definition fighter.h:131
float x44
fast fall speed mult
Definition fighter.h:139
float x90
Definition fighter.h:158
float x28
jump y impulse fullhop mult
Definition fighter.h:132
float x5C
Definition fighter.h:145
float x88
Definition fighter.h:156
float x7C
uair land lag mult
Definition fighter.h:153
float x68
Definition fighter.h:148
float x8
Definition fighter.h:124
float x38
air accel a mult
Definition fighter.h:136
float x74
fair land lag mult
Definition fighter.h:151
float xC
Definition fighter.h:125
float x3C
air accel b mult
Definition fighter.h:137
float x18
walk fast speed mult
Definition fighter.h:128
float x14
walk middle speed
Definition fighter.h:127
float x48
weight mult
Definition fighter.h:140
float x58
Definition fighter.h:144
float x70
nair land lag mult
Definition fighter.h:150
float x60
Definition fighter.h:146
float x10
walk anim scale
Definition fighter.h:126
float x40
air speed mult
Definition fighter.h:138
float x84
Definition fighter.h:155
float x54
Definition fighter.h:143
float x20
Definition fighter.h:130
float x4C
shield break y vel mult
Definition fighter.h:141
float x50
Definition fighter.h:142
float x8C
Definition fighter.h:157
float x2C
jump y impulse shorthop mult
Definition fighter.h:133
float x34
fall speed mult
Definition fighter.h:135
float x98
Definition fighter.h:160
float x64
Definition fighter.h:147
float x0
knockback recieved mult
Definition fighter.h:122
float x1C
dash max speed
Definition fighter.h:129
float x94
cmsubject offset mult
Definition fighter.h:159
float x78
bair land lag mult
Definition fighter.h:152
float x6C
empty land lag mult
Definition fighter.h:149
float x80
dair land lag mult
Definition fighter.h:154
Definition fighter.h:162
int x4
Definition fighter.h:164
Vec2 * x0
Definition fighter.h:163
Definition types.h:455
Definition fighter.h:171
struct Fighter_804D6540_t::Fighter_804D6540_x0_t * x0
int x4
Definition fighter.h:178
Definition types.h:1103
Definition jobj.h:130
Definition objalloc.h:21
Definition types.h:61
Definition types.h:607
Definition types.h:11