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 <Runtime/platform.h>
5
7
8#include <placeholder.h>
9
10#include <dolphin/mtx.h>
11#include <melee/ft/inlines.h> // IWYU pragma: export
12#include <melee/ft/types.h>
14
19extern struct Fighter_804D64FC_t {
21 void** x4;
22 void** x8;
24 void** x10;
25 void** x14;
26 void** x18;
27 void** x1C;
28 float* x20;
29 void* x24;
31
32struct plAllocInfo;
33
34/* 0679B0 */ void Fighter_800679B0(void);
35/* 067A84 */ void Fighter_FirstInitialize_80067A84(void);
36/* 067ABC */ void Fighter_LoadCommonData(void);
37/* 067BB4 */ void Fighter_UpdateModelScale(Fighter_GObj* gobj);
38/* 067C98 */ void Fighter_UnkInitReset_80067C98(Fighter*);
39/* 068354 */ void Fighter_UnkProcessDeath_80068354(Fighter_GObj* gobj);
40/* 0686E4 */ void Fighter_UnkUpdateCostumeJoint_800686E4(Fighter_GObj* gobj);
42/* 068854 */ void Fighter_ResetInputData_80068854(Fighter_GObj* gobj);
43/* 068914 */ void Fighter_UnkInitLoad_80068914(Fighter_GObj* gobj,
44 struct plAllocInfo* argdata);
45/* 068E40 */ u32 Fighter_NewSpawn_80068E40(void);
46/* 068E64 */ void Fighter_80068E64(Fighter_GObj* gobj);
47/* 068E98 */ Fighter_GObj* Fighter_Create(struct plAllocInfo* input);
48/* 0693AC */ void Fighter_ChangeMotionState(Fighter_GObj* gobj,
49 FtMotionId msid, MotionFlags flags,
50 f32 anim_start, f32 anim_speed,
51 f32 anim_blend,
52 Fighter_GObj* arg3);
53/* 06A1BC */ void Fighter_8006A1BC(Fighter_GObj* gobj);
54/* 06A360 */ void Fighter_8006A360(Fighter_GObj* gobj);
55/* 06ABA0 */ void Fighter_8006ABA0(Fighter_GObj* gobj);
56/* 06ABEC */ void Fighter_UnkIncrementCounters_8006ABEC(Fighter_GObj* gobj);
57/* 06AD10 */ void Fighter_Spaghetti_8006AD10(Fighter_GObj* gobj);
58/* 06B82C */ void Fighter_procUpdate(Fighter_GObj* gobj);
59/* 06C0F0 */ void Fighter_UnkApplyTransformation_8006C0F0(Fighter_GObj* gobj);
60/* 06C27C */ void Fighter_procMap(Fighter_GObj* gobj);
61/* 06C5F4 */ void Fighter_8006C5F4(Fighter_GObj* gobj);
62/* 06C624 */ void Fighter_CallAcessoryCallbacks_8006C624(Fighter_GObj* gobj);
63/* 06C80C */ void Fighter_8006C80C(Fighter_GObj* gobj);
64/* 06CA5C */ void Fighter_UnkProcessGrab_8006CA5C(Fighter_GObj* gobj);
65/* 06CB94 */ void Fighter_8006CB94(Fighter_GObj* gobj);
66/* 06CC30 */ void Fighter_UnkTakeDamage_8006CC30(Fighter* fp,
67 float damage_amount);
68/* 06CC7C */ void Fighter_TakeDamage_8006CC7C(Fighter*, float);
69/* 06CDA4 */ void Fighter_8006CDA4(Fighter* fp, s32 arg1);
70/* 06CF5C */ void Fighter_8006CF5C(Fighter* fp, s32 arg1);
71/* 06CFBC */ void Fighter_UnkSetFlag_8006CFBC(Fighter_GObj* gobj);
72/* 06CFE0 */ void Fighter_8006CFE0(Fighter_GObj* gobj);
73/* 06D044 */ void Fighter_UnkRecursiveFunc_8006D044(Fighter_GObj* gobj);
74/* 06D10C */ void Fighter_8006D10C(Fighter_GObj* gobj);
75/* 06D1EC */ void Fighter_ProcessHit_8006D1EC(Fighter_GObj* gobj);
76/* 06D9AC */ void Fighter_8006D9AC(Fighter_GObj* gobj);
77/* 06D9EC */ void Fighter_UnkCallCameraCallback_8006D9EC(Fighter_GObj* gobj);
78/* 06DA4C */ void Fighter_8006DA4C(Fighter_GObj* gobj);
79/* 06DABC */ void Fighter_Unload_8006DABC(void* user_data);
80/* 458FD0 */ extern HSD_ObjAllocData fighter_alloc_data;
86/* 4D6504 */ extern HSD_Joint* Fighter_804D6504;
87/* 4D6508 */ extern u8* Fighter_804D6508;
88/* 4D650C */ extern u8* Fighter_804D650C;
89/* 4D6510 */ extern UNK_T Fighter_804D6510;
90/* 4D6514 */ extern HSD_Joint*
92
93/* 4D6518 */ extern struct Fighter_804D6518_t {
97
109
127
128/* 4D6524 */ extern struct Fighter_804D6524_t {
130 float x0;
131 float x4;
132 float x8;
133 float xC;
134 float x10;
135 float x14;
136 float x18;
137 float x1C;
138 float x20;
139 float x24;
140 float x28;
141 float x2C;
142 float x30;
143 float x34;
144 float x38;
145 float x3C;
146 float x40;
147 float x44;
148 float x48;
149 float x4C;
150 float x50;
151 float x54;
152 float x58;
153 float x5C;
154 float x60;
155 float x64;
156 float x68;
157 float x6C;
158 float x70;
159 float x74;
160 float x78;
161 float x7C;
162 float x80;
163 float x84;
164 float x88;
165 float x8C;
166 float x90;
167 float x94;
168 float x98;
174
176/* 4D652C */ extern struct Fighter_ShakeTable_t* Fighter_GrabMashShake;
177
178/* 4D6530 */ extern Vec2** Fighter_804D6530;
179/* 4D6534 */ extern UNK_T Fighter_804D6534;
180/* 4D6538 */ extern struct Fighter_804D653C_t* Fighter_804D6538;
181/* 4D653C */ extern struct Fighter_804D653C_t* Fighter_804D653C;
191/* 4D6544 */ extern FighterPartsTable** ftPartsTable;
192/* 4D6548 */ extern float* Fighter_804D6548;
193/* 4D654C */ extern float (*Fighter_804D654C)[5];
194/* 4D6550 */ extern int** Fighter_804D6550;
195/* 4D6554 */ extern ftCommonData* p_ftCommonData;
196
197#endif
u8 x0
Definition dbbonus.c:23
unsigned long u32
Definition types.h:9
float f32
Definition types.h:13
signed long s32
Definition types.h:8
unsigned char u8
Definition types.h:5
float(* Fighter_804D654C)[5]
Definition fighter.c:136
HSD_ObjAllocData fighter_alloc_data
Definition fighter.c:103
HSD_Joint * Fighter_804D6514
trophy platform model when characters spawn
Definition fighter.c:122
ftCommonData * p_ftCommonData
Definition fighter.c:138
struct Fighter_804D651C_t * Fighter_804D651C
Definition fighter.c:124
HSD_ObjAllocData fighter_x59C_alloc_data
Definition fighter.c:108
HSD_Joint * Fighter_804D6504
Definition fighter.c:118
struct Fighter_804D6518_t * Fighter_804D6518
Definition fighter.c:123
Vec2 ** Fighter_804D6530
Definition fighter.c:129
UNK_T Fighter_804D6534
Definition fighter.c:130
struct Fighter_804D64FC_t * Fighter_804D64FC
the following seems to be an array, initialized in reverse in
Definition fighter.c:116
struct Fighter_804D653C_t * Fighter_804D653C
Definition fighter.c:132
struct Fighter_804D6520_t * Fighter_804D6520
Definition fighter.c:125
int ** Fighter_804D6550
Definition fighter.c:137
UNK_T Fighter_804D6510
Definition fighter.c:121
HSD_ObjAllocData fighter_parts_alloc_data
Definition fighter.c:105
struct Fighter_ShakeTable_t * Fighter_SmashChargeShakeTable
Definition fighter.c:127
u8 * Fighter_804D650C
Definition fighter.c:120
struct Fighter_ShakeTable_t * Fighter_GrabMashShake
Grab-mash shake table.
Definition fighter.c:128
u8 * Fighter_804D6508
Definition fighter.c:119
HSD_ObjAllocData fighter_x2040_alloc_data
Definition fighter.c:107
HSD_ObjAllocData fighter_dat_attrs_alloc_data
Definition fighter.c:104
FighterPartsTable ** ftPartsTable
Definition fighter.c:134
HSD_ObjAllocData fighter_dobj_list_alloc_data
Definition fighter.c:106
struct Fighter_804D6540_t ** Fighter_804D6540
Definition fighter.c:133
struct Fighter_804D653C_t * Fighter_804D6538
Definition fighter.c:131
struct Fighter_804D6524_t * Fighter_804D6524
Definition fighter.c:126
float * Fighter_804D6548
Definition fighter.c:135
void Fighter_8006C5F4(Fighter_GObj *gobj)
Definition fighter.c:2519
void Fighter_8006A1BC(Fighter_GObj *gobj)
Definition fighter.c:1393
void Fighter_8006D9AC(Fighter_GObj *gobj)
Definition fighter.c:3051
void Fighter_8006DA4C(Fighter_GObj *gobj)
Definition fighter.c:3074
void Fighter_8006CF5C(Fighter *fp, s32 arg1)
Definition fighter.c:2711
void Fighter_UnkInitReset_80067C98(Fighter *)
Definition fighter.c:232
Fighter_GObj * Fighter_Create(struct plAllocInfo *input)
Definition fighter.c:846
void Fighter_80068E64(Fighter_GObj *gobj)
Definition fighter.c:821
void Fighter_ResetInputData_80068854(Fighter_GObj *gobj)
Definition fighter.c:598
void Fighter_UnkUpdateVecFromBones_8006876C(Fighter *fp)
Definition fighter.c:581
void Fighter_UnkApplyTransformation_8006C0F0(Fighter_GObj *gobj)
Definition fighter.c:2441
void Fighter_8006C80C(Fighter_GObj *gobj)
Definition fighter.c:2553
void Fighter_UnkRecursiveFunc_8006D044(Fighter_GObj *gobj)
Definition fighter.c:2749
void Fighter_UpdateModelScale(Fighter_GObj *gobj)
Definition fighter.c:213
void Fighter_UnkProcessGrab_8006CA5C(Fighter_GObj *gobj)
Definition fighter.c:2590
void Fighter_UnkSetFlag_8006CFBC(Fighter_GObj *gobj)
Definition fighter.c:2720
void Fighter_8006CDA4(Fighter *fp, s32 arg1)
Definition fighter.c:2672
void Fighter_8006D10C(Fighter_GObj *gobj)
Definition fighter.c:2792
void Fighter_CallAcessoryCallbacks_8006C624(Fighter_GObj *gobj)
Definition fighter.c:2527
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:933
void Fighter_procMap(Fighter_GObj *gobj)
Definition fighter.c:2477
void Fighter_TakeDamage_8006CC7C(Fighter *, float)
Definition fighter.c:2649
void Fighter_800679B0(void)
Definition fighter.c:140
void Fighter_FirstInitialize_80067A84(void)
Definition fighter.c:173
void Fighter_8006ABA0(Fighter_GObj *gobj)
Definition fighter.c:1703
void Fighter_LoadCommonData(void)
Definition fighter.c:179
void Fighter_8006CFE0(Fighter_GObj *gobj)
Definition fighter.c:2729
void Fighter_UnkProcessDeath_80068354(Fighter_GObj *gobj)
Definition fighter.c:514
void Fighter_UnkIncrementCounters_8006ABEC(Fighter_GObj *gobj)
https://decomp.me/scratch/A7CgG
Definition fighter.c:1712
void Fighter_Spaghetti_8006AD10(Fighter_GObj *gobj)
Definition fighter.c:1777
void Fighter_UnkInitLoad_80068914(Fighter_GObj *gobj, struct plAllocInfo *argdata)
Definition fighter.c:683
void Fighter_UnkTakeDamage_8006CC30(Fighter *fp, float damage_amount)
Definition fighter.c:2643
void Fighter_UnkUpdateCostumeJoint_800686E4(Fighter_GObj *gobj)
Definition fighter.c:565
void Fighter_ProcessHit_8006D1EC(Fighter_GObj *gobj)
Definition fighter.c:2807
void Fighter_procUpdate(Fighter_GObj *gobj)
Definition fighter.c:2154
void Fighter_8006A360(Fighter_GObj *gobj)
Definition fighter.c:1444
void Fighter_UnkCallCameraCallback_8006D9EC(Fighter_GObj *gobj)
Definition fighter.c:3062
u32 Fighter_NewSpawn_80068E40(void)
increments the spawn number, returns the spawn number value before incrementing
Definition fighter.c:812
void Fighter_8006CB94(Fighter_GObj *gobj)
Definition fighter.c:2622
void Fighter_Unload_8006DABC(void *user_data)
Definition fighter.c:3087
HSD_GObj * gobj
Definition gm_19EF.c:73
enum_t FtMotionId
Definition forward.h:18
u32 MotionFlags
Definition forward.h:53
#define UNK_T
Definition placeholder.h:23
Table in PlCo.dat.
Definition types.h:45
Definition fighter.h:19
u8 ** cmdscripts
+00 per-character command script arrays
Definition fighter.h:20
void ** x18
+18 weapon attack tables (per character)
Definition fighter.h:26
float * x20
+20 distance thresholds (per character)
Definition fighter.h:28
void ** x4
+04 ground attack tables (per character)
Definition fighter.h:21
void ** x8
+08 air attack tables (per character)
Definition fighter.h:22
void * x24
+24 weapon reach bonus table
Definition fighter.h:29
UNK_T * xC
+0C ranged/projectile attack tables
Definition fighter.h:23
void ** x14
+14 special action tables (per character)
Definition fighter.h:25
void ** x1C
+1C edge guard tables (per character)
Definition fighter.h:27
void ** x10
+10 smash attack tables (per character)
Definition fighter.h:24
Definition fighter.h:93
f32 x0
gravity mult
Definition fighter.h:94
f32 x4
weight mult
Definition fighter.h:95
Definition fighter.h:98
f32 x18
weight
Definition fighter.h:105
f32 x20
wall jump y impulse
Definition fighter.h:107
f32 x0
Definition fighter.h:99
f32 x8
jump y impulse shorthop
Definition fighter.h:101
f32 x14
fast fall speed
Definition fighter.h:104
f32 x4
jump y impulse fullhop
Definition fighter.h:100
f32 xC
gravity
Definition fighter.h:102
f32 x10
fall speed
Definition fighter.h:103
f32 x1C
ledge jump y impulse
Definition fighter.h:106
Definition fighter.h:110
f32 x20
gravity
Definition fighter.h:119
f32 x28
fast fall speed
Definition fighter.h:121
f32 x10
jump x impulse
Definition fighter.h:115
f32 x30
ledge jump y impulse
Definition fighter.h:123
f32 x18
jump y impulse shorthop
Definition fighter.h:117
f32 xC
dash max speed
Definition fighter.h:114
f32 x1C
jump x max speed
Definition fighter.h:118
f32 x14
jump y impulse fullhop
Definition fighter.h:116
f32 x8
dash accel b
Definition fighter.h:113
f32 x38
wall jump y impulse
Definition fighter.h:125
f32 x4
dash accel a
Definition fighter.h:112
f32 x34
wall jump x impulse
Definition fighter.h:124
f32 x0
walk speed scale
Definition fighter.h:111
f32 x24
fall speed
Definition fighter.h:120
f32 x2C
ledge jump x impulse
Definition fighter.h:122
Definition fighter.h:128
float x4
damage dealt mult
Definition fighter.h:131
float x30
gravity mult
Definition fighter.h:142
float x24
jump squat mult
Definition fighter.h:139
float x44
fast fall speed mult
Definition fighter.h:147
float x90
Definition fighter.h:166
float x28
jump y impulse fullhop mult
Definition fighter.h:140
float x5C
Definition fighter.h:153
float x88
Definition fighter.h:164
float x7C
uair land lag mult
Definition fighter.h:161
float x68
Definition fighter.h:156
float x8
Definition fighter.h:132
float x38
air accel a mult
Definition fighter.h:144
float x74
fair land lag mult
Definition fighter.h:159
float xC
Definition fighter.h:133
float x3C
air accel b mult
Definition fighter.h:145
float x18
walk fast speed mult
Definition fighter.h:136
float x14
walk middle speed
Definition fighter.h:135
float x48
weight mult
Definition fighter.h:148
float x58
Definition fighter.h:152
float x70
nair land lag mult
Definition fighter.h:158
float x60
Definition fighter.h:154
float x10
walk anim scale
Definition fighter.h:134
float x40
air speed mult
Definition fighter.h:146
float x84
Definition fighter.h:163
float x54
Definition fighter.h:151
float x20
Definition fighter.h:138
float x4C
shield break y vel mult
Definition fighter.h:149
float x50
Definition fighter.h:150
float x8C
Definition fighter.h:165
float x2C
jump y impulse shorthop mult
Definition fighter.h:141
float x34
fall speed mult
Definition fighter.h:143
float x98
Definition fighter.h:168
float x64
Definition fighter.h:155
float x0
knockback recieved mult
Definition fighter.h:130
float x1C
dash max speed
Definition fighter.h:137
float x94
cmsubject offset mult
Definition fighter.h:167
float x78
bair land lag mult
Definition fighter.h:160
float x6C
empty land lag mult
Definition fighter.h:157
float x80
dair land lag mult
Definition fighter.h:162
Definition types.h:430
Definition fighter.h:182
int x4
Definition fighter.h:189
Definition fighter.h:170
Vec2 * x0
Definition fighter.h:171
int x4
Definition fighter.h:172
Definition types.h:1250
Definition jobj.h:127
Definition objalloc.h:19
Definition mtx.h:10
Definition types.h:77
Definition types.h:10