summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_gnd.cpp
blob: d9729db231bd869e6724190d3873f9af9a8759eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/**
 * d_a_gnd.cpp
 * Boss - Ganondorf
 */

#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_gnd.h"
#include "d/d_cc_d.h"

/* 000000EC-0000023C       .text __ct__11daGnd_HIO_cFv */
daGnd_HIO_c::daGnd_HIO_c() {
    /* Nonmatching */
}

/* 0000023C-000003CC       .text j_demo__FP9gnd_class */
void j_demo(gnd_class*) {
    /* Nonmatching */
}

/* 000003CC-000003EC       .text checkGround__FP9gnd_classf */
void checkGround(gnd_class*, float) {
    /* Nonmatching */
}

/* 000003EC-00000510       .text setRipple__FP9gnd_class */
void setRipple(gnd_class*) {
    /* Nonmatching */
}

/* 0000054C-000005DC       .text splash_set__FP9gnd_class */
void splash_set(gnd_class*) {
    /* Nonmatching */
}

/* 000005DC-000006B4       .text attack_eff_set__FP9gnd_classi */
void attack_eff_set(gnd_class*, int) {
    /* Nonmatching */
}

/* 000006B4-00000738       .text attack_eff_move__FP9gnd_class */
void attack_eff_move(gnd_class*) {
    /* Nonmatching */
}

/* 00000738-0000077C       .text attack_eff_remove__FP9gnd_class */
void attack_eff_remove(gnd_class*) {
    /* Nonmatching */
}

/* 0000077C-00000900       .text anm_init__FP9gnd_classifUcfi */
void anm_init(gnd_class*, int, float, unsigned char, float, int) {
    /* Nonmatching */
}

/* 00000900-0000094C       .text z_s_sub__FPvPv */
void z_s_sub(void*, void*) {
    /* Nonmatching */
}

/* 0000094C-00000C38       .text daGnd_Draw__FP9gnd_class */
static BOOL daGnd_Draw(gnd_class*) {
    /* Nonmatching */
}

/* 00000C38-00000C6C       .text player_view_check__FP9gnd_classs */
void player_view_check(gnd_class*, short) {
    /* Nonmatching */
}

/* 00000C6C-00000F24       .text ke_control__FP9gnd_classP8gnd_ke_sf */
void ke_control(gnd_class*, gnd_ke_s*, float) {
    /* Nonmatching */
}

/* 00000F24-00000F68       .text ke_pos_set__FP9gnd_classP8gnd_ke_si */
void ke_pos_set(gnd_class*, gnd_ke_s*, int) {
    /* Nonmatching */
}

/* 00000F68-00001140       .text ke_move__FP9gnd_class */
void ke_move(gnd_class*) {
    /* Nonmatching */
}

/* 00001140-00001278       .text pos_move__FP9gnd_classSc */
void pos_move(gnd_class*, signed char) {
    /* Nonmatching */
}

/* 00001278-00001334       .text wait_set__FP9gnd_class */
void wait_set(gnd_class*) {
    /* Nonmatching */
}

/* 00001334-00001974       .text move0__FP9gnd_class */
void move0(gnd_class*) {
    /* Nonmatching */
}

/* 00001974-000028D0       .text attack0__FP9gnd_class */
void attack0(gnd_class*) {
    /* Nonmatching */
}

/* 000028D0-00002B68       .text attack1__FP9gnd_class */
void attack1(gnd_class*) {
    /* Nonmatching */
}

/* 00002B68-00002D7C       .text attack2__FP9gnd_class */
void attack2(gnd_class*) {
    /* Nonmatching */
}

/* 00002D7C-00003688       .text attackPZ__FP9gnd_class */
void attackPZ(gnd_class*) {
    /* Nonmatching */
}

/* 00003688-000038B0       .text attack_last__FP9gnd_class */
void attack_last(gnd_class*) {
    /* Nonmatching */
}

/* 000038B0-000042D0       .text defence0__FP9gnd_class */
void defence0(gnd_class*) {
    /* Nonmatching */
}

/* 000042D0-00004330       .text finish__FP9gnd_class */
void finish(gnd_class*) {
    /* Nonmatching */
}

/* 00004330-00004760       .text damage__FP9gnd_class */
void damage(gnd_class*) {
    /* Nonmatching */
}

/* 00004760-0000501C       .text damage_check__FP9gnd_class */
void damage_check(gnd_class*) {
    /* Nonmatching */
}

/* 0000501C-0000509C       .text shot_s_sub__FPvPv */
void shot_s_sub(void*, void*) {
    /* Nonmatching */
}

/* 0000509C-000050B0       .text demowait__FP9gnd_class */
void demowait(gnd_class*) {
    /* Nonmatching */
}

/* 000050B0-000050C8       .text yawait__FP9gnd_class */
void yawait(gnd_class*) {
    /* Nonmatching */
}

/* 000050C8-000054F0       .text gnd_move__FP9gnd_class */
void gnd_move(gnd_class*) {
    /* Nonmatching */
}

/* 000054F0-00006B04       .text demo_camera__FP9gnd_class */
void demo_camera(gnd_class*) {
    /* Nonmatching */
}

/* 00006B04-00006D0C       .text body_flash__FP9gnd_class */
void body_flash(gnd_class*) {
    /* Nonmatching */
}

/* 00006D0C-000076B8       .text daGnd_Execute__FP9gnd_class */
static BOOL daGnd_Execute(gnd_class*) {
    /* Nonmatching */
}

/* 000076B8-000076C0       .text daGnd_IsDelete__FP9gnd_class */
static BOOL daGnd_IsDelete(gnd_class*) {
    return TRUE;
}

/* 000076C0-00007738       .text daGnd_Delete__FP9gnd_class */
static BOOL daGnd_Delete(gnd_class*) {
    /* Nonmatching */
}

/* 00007738-00007A78       .text useHeapInit__FP10fopAc_ac_c */
static BOOL useHeapInit(fopAc_ac_c*) {
    /* Nonmatching */
}

/* 00007AC0-00007CFC       .text daGnd_Create__FP10fopAc_ac_c */
static cPhs_State daGnd_Create(fopAc_ac_c*) {
    /* Nonmatching */
    static dCcD_SrcCyl cc_cyl_src = {
        // dCcD_SrcGObjInf
        {
            /* Flags             */ 0,
            /* SrcObjAt  Type    */ 0,
            /* SrcObjAt  Atp     */ 0,
            /* SrcObjAt  SPrm    */ 0,
            /* SrcObjTg  Type    */ AT_TYPE_SWORD,
            /* SrcObjTg  SPrm    */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e,
            /* SrcObjCo  SPrm    */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e,
            /* SrcGObjAt Se      */ 0,
            /* SrcGObjAt HitMark */ dCcG_AtHitMark_None_e,
            /* SrcGObjAt Spl     */ dCcG_At_Spl_UNK0,
            /* SrcGObjAt Mtrl    */ 0,
            /* SrcGObjAt SPrm    */ 0,
            /* SrcGObjTg Se      */ 0,
            /* SrcGObjTg HitMark */ dCcG_TgHitMark_Nrm_e,
            /* SrcGObjTg Spl     */ dCcG_Tg_Spl_UNK0,
            /* SrcGObjTg Mtrl    */ 0,
            /* SrcGObjTg SPrm    */ dCcG_TgSPrm_NoConHit_e,
            /* SrcGObjCo SPrm    */ 0,
        },
        // cM3dGCylS
        {{
            /* Center */ {0.0f, -150.0f, 0.0f},
            /* Radius */ 100.0f,
            /* Height */ 100.0f,
        }},
    };
    static dCcD_SrcSph head_sph_src = {
        // dCcD_SrcGObjInf
        {
            /* Flags             */ 0,
            /* SrcObjAt  Type    */ 0,
            /* SrcObjAt  Atp     */ 0,
            /* SrcObjAt  SPrm    */ 0,
            /* SrcObjTg  Type    */ AT_TYPE_SWORD,
            /* SrcObjTg  SPrm    */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e | cCcD_TgSPrm_IsOther_e,
            /* SrcObjCo  SPrm    */ 0,
            /* SrcGObjAt Se      */ 0,
            /* SrcGObjAt HitMark */ dCcG_AtHitMark_None_e,
            /* SrcGObjAt Spl     */ dCcG_At_Spl_UNK0,
            /* SrcGObjAt Mtrl    */ 0,
            /* SrcGObjAt SPrm    */ 0,
            /* SrcGObjTg Se      */ 0,
            /* SrcGObjTg HitMark */ 0,
            /* SrcGObjTg Spl     */ dCcG_Tg_Spl_UNK0,
            /* SrcGObjTg Mtrl    */ 0,
            /* SrcGObjTg SPrm    */ dCcG_TgSPrm_NoConHit_e,
            /* SrcGObjCo SPrm    */ 0,
        },
        // cM3dGSphS
        {{
            /* Center */ {0.0f, 0.0f, 0.0f},
            /* Radius */ 15.0f,
        }},
    };
    static dCcD_SrcSph chest_sph_src = {
        // dCcD_SrcGObjInf
        {
            /* Flags             */ 0,
            /* SrcObjAt  Type    */ 0,
            /* SrcObjAt  Atp     */ 0,
            /* SrcObjAt  SPrm    */ 0,
            /* SrcObjTg  Type    */ AT_TYPE_NORMAL_ARROW | AT_TYPE_LIGHT_ARROW,
            /* SrcObjTg  SPrm    */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e | cCcD_TgSPrm_IsOther_e,
            /* SrcObjCo  SPrm    */ 0,
            /* SrcGObjAt Se      */ 0,
            /* SrcGObjAt HitMark */ dCcG_AtHitMark_None_e,
            /* SrcGObjAt Spl     */ dCcG_At_Spl_UNK0,
            /* SrcGObjAt Mtrl    */ 0,
            /* SrcGObjAt SPrm    */ 0,
            /* SrcGObjTg Se      */ dCcG_SE_METAL,
            /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e,
            /* SrcGObjTg Spl     */ dCcG_Tg_Spl_UNK0,
            /* SrcGObjTg Mtrl    */ 0,
            /* SrcGObjTg SPrm    */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e,
            /* SrcGObjCo SPrm    */ 0,
        },
        // cM3dGSphS
        {{
            /* Center */ {0.0f, 0.0f, 0.0f},
            /* Radius */ 100.0f,
        }},
    };
    static dCcD_SrcSph wepon_sph_src = {
        // dCcD_SrcGObjInf
        {
            /* Flags             */ 0,
            /* SrcObjAt  Type    */ AT_TYPE_UNK8,
            /* SrcObjAt  Atp     */ 4,
            /* SrcObjAt  SPrm    */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_GrpAll_e,
            /* SrcObjTg  Type    */ AT_TYPE_ALL & ~AT_TYPE_WATER & ~AT_TYPE_UNK20000 & ~AT_TYPE_WIND & ~AT_TYPE_UNK400000 & ~AT_TYPE_LIGHT,
            /* SrcObjTg  SPrm    */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e | cCcD_TgSPrm_IsOther_e,
            /* SrcObjCo  SPrm    */ 0,
            /* SrcGObjAt Se      */ 0,
            /* SrcGObjAt HitMark */ dCcG_AtHitMark_Nrm_e,
            /* SrcGObjAt Spl     */ dCcG_At_Spl_UNK6,
            /* SrcGObjAt Mtrl    */ 0,
            /* SrcGObjAt SPrm    */ dCcG_AtSPrm_NoConHit_e,
            /* SrcGObjTg Se      */ dCcG_SE_METAL,
            /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e,
            /* SrcGObjTg Spl     */ dCcG_Tg_Spl_UNK0,
            /* SrcGObjTg Mtrl    */ 0,
            /* SrcGObjTg SPrm    */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e,
            /* SrcGObjCo SPrm    */ 0,
        },
        // cM3dGSphS
        {{
            /* Center */ {0.0f, 0.0f, 0.0f},
            /* Radius */ 70.0f,
        }},
    };
}

static actor_method_class l_daGnd_Method = {
    (process_method_func)daGnd_Create,
    (process_method_func)daGnd_Delete,
    (process_method_func)daGnd_Execute,
    (process_method_func)daGnd_IsDelete,
    (process_method_func)daGnd_Draw,
};

actor_process_profile_definition g_profile_GND = {
    /* Layer ID     */ fpcLy_CURRENT_e,
    /* List ID      */ 0x0007,
    /* List Prio    */ fpcPi_CURRENT_e,
    /* Proc Name    */ fpcNm_GND_e,
    /* Proc SubMtd  */ &g_fpcLf_Method.base,
    /* Size         */ sizeof(gnd_class),
    /* Size Other   */ 0,
    /* Parameters   */ 0,
    /* Leaf SubMtd  */ &g_fopAc_Method.base,
    /* Draw Prio    */ fpcDwPi_GND_e,
    /* Actor SubMtd */ &l_daGnd_Method,
    /* Status       */ fopAcStts_UNK40000_e | fopAcStts_BOSS_e,
    /* Group        */ fopAc_ENEMY_e,
    /* Cull Type    */ fopAc_CULLBOX_0_e,
};