summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_pw.cpp
blob: db96710493b5a508d9d8da7851de9a54109f0d2f (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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
/**
 * d_a_pw.cpp
 * Enemy - Poe
 */

#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_pw.h"
#include "d/actor/d_a_player.h"
#include "d/d_bg_s_lin_chk.h"
#include "d/d_com_inf_game.h"
#include "res/Object/Pw.h"
#include "d/d_kankyo_rain.h"
#include "f_op/f_op_camera.h"
#include "f_pc/f_pc_manager.h"
#include "d/d_cc_d.h"

enum daPW__BehaviorType {
    VisibleFromStart = 0x0,
    InvisibleAtStart = 0x1,
    OnlyLanternVisibleAtStart = 0x2,
    JalhallaChildA = 0x3,
    JalhallaChildB = 0x4,
    UseDefault = 0xFF
};

static bool TORITUKI_ON = false;

/* 00000078-00000158       .text nodeCallBack__FP7J3DNodei */
static BOOL nodeCallBack(J3DNode*, int) {
    /* Nonmatching */
}

/* 00000158-00000230       .text draw_SUB__FP8pw_class */
void draw_SUB(pw_class* i_this) {
    J3DModel* model = i_this->mpMorf->getModel();
    model->setBaseScale(i_this->scale);
    mDoMtx_stack_c::transS(i_this->current.pos.x, i_this->current.pos.y + i_this->m3A4, i_this->current.pos.z);
    mDoMtx_stack_c::YrotM(i_this->shape_angle.y);
    mDoMtx_stack_c::XrotM(i_this->shape_angle.x);
    mDoMtx_stack_c::ZrotM(i_this->shape_angle.z);
    model->setBaseTRMtx(mDoMtx_stack_c::get());

    i_this->mpMorf->calc();
    
    enemy_fire(&i_this->mEnemyFire);

    g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->tevStr);
}

/* 00000230-000004D4       .text daPW_Draw__FP8pw_class */
static BOOL daPW_Draw(pw_class*) {
    /* Nonmatching */
}

/* 000004D4-00000600       .text anm_init__FP8pw_classifUcfi */
void anm_init(pw_class* i_this, int bckFileIdx, f32 morf, u8 loopMode, f32 speed, int soundFileIdx) {
    i_this->mBckIdx = bckFileIdx;
    if (soundFileIdx >= 0) {
        void* soundAnm = dComIfG_getObjectRes("PW", soundFileIdx);
        J3DAnmTransform* bckAnm = (J3DAnmTransform*)dComIfG_getObjectRes("PW", bckFileIdx);
        i_this->mpMorf->setAnm(bckAnm, loopMode, morf, speed, 0.0f, -1.0f, soundAnm);
    } else {
        J3DAnmTransform* bckAnm = (J3DAnmTransform*)dComIfG_getObjectRes("PW", bckFileIdx);
        i_this->mpMorf->setAnm(bckAnm, loopMode, morf, speed, 0.0f, -1.0f, NULL);
    }
}

/* 00000600-000006F4       .text kantera_break__FP8pw_class */
void kantera_break(pw_class*) {
    /* Nonmatching */
}

/* 000006F4-000007CC       .text Big_pow_gattai_check__FP8pw_class */
void Big_pow_gattai_check(pw_class*) {
    /* Nonmatching */
}

/* 000007CC-000008B0       .text Big_pow_down_check__FP8pw_class */
void Big_pow_down_check(pw_class*) {
    /* Nonmatching */
}

/* 000008B0-0000121C       .text body_atari_check__FP8pw_class */
void body_atari_check(pw_class*) {
    /* Nonmatching */
}

/* 00001258-000016FC       .text kantera_atari_check__FP8pw_class */
void kantera_atari_check(pw_class*) {
    /* Nonmatching */
}

/* 000016FC-000018FC       .text kantera_calc__FP8pw_class */
void kantera_calc(pw_class*) {
    /* Nonmatching */
}

/* 000018FC-00001990       .text BG_check__FP8pw_class */
void BG_check(pw_class* i_this) {
    i_this->mAcchCir.SetWall(70.0f, 140.0f);

    i_this->current.pos.y -= i_this->mCorrectionOffsetY;
    i_this->old.pos.y -= i_this->mCorrectionOffsetY;
    i_this->mAcch.CrrPos(*dComIfG_Bgsp());
    i_this->current.pos.y += i_this->mCorrectionOffsetY;
    i_this->old.pos.y += i_this->mCorrectionOffsetY;
}

/* 00001990-00001D60       .text Line_check__FP8pw_class4cXyzUc */
BOOL Line_check(pw_class* i_this, cXyz destPos, u8 r22) {
    fopAc_ac_c* actor = i_this;
    dBgS_LinChk linChk;
    i_this->m314 = destPos;
    if (!r22) {
        cMtx_YrotS(*calc_mtx, i_this->current.angle.y);
        cXyz sp14(0.0f, 0.0f, 200.0f);
        MtxPosition(&sp14, &destPos);
        i_this->m314 = destPos + i_this->current.pos;
    }
    i_this->m314.y += 80.0f;
    destPos = i_this->m314;
    i_this->m308 = i_this->current.pos;
    i_this->m308.y += 80.0f;
    linChk.Set(&i_this->m308, &destPos, actor);
    if (!dComIfG_Bgsp()->LineCross(&linChk)) {
        return FALSE;
    }
    i_this->m38C = i_this->current.angle.y + 0x8000;
    return TRUE;
}

/* 00002198-00002254       .text alpha_anime__FP8pw_class */
void alpha_anime(pw_class*) {
    /* Nonmatching */
}

/* 00002254-00002400       .text fuwafuwa_calc__FP8pw_class */
void fuwafuwa_calc(pw_class*) {
    /* Nonmatching */
}

/* 00002400-00002560       .text kougen_hani_check__FP8pw_classUc */
void kougen_hani_check(pw_class*, u8) {
    /* Nonmatching */
}

/* 00002560-00002714       .text kyori_sub__FP8pw_class */
void kyori_sub(pw_class*) {
    /* Nonmatching */
}

/* 00002714-0000289C       .text hani_check__FP8pw_class */
BOOL hani_check(pw_class*) {
    /* Nonmatching */
}

/* 0000289C-000029C8       .text next_dousa_check__FP8pw_class */
void next_dousa_check(pw_class*) {
    /* Nonmatching */
}

/* 000029C8-00002A54       .text move_sound__FP8pw_class */
void move_sound(pw_class*) {
    /* Nonmatching */
}

/* 00002A54-00002A90       .text first_mode_change__FP8pw_class */
void first_mode_change(pw_class*) {
    /* Nonmatching */
}

/* 00002A90-00003B08       .text action_dousa__FP8pw_class */
void action_dousa(pw_class* i_this) {
    /* Nonmatching */
    daPy_py_c* player = daPy_getPlayerActorClass();
    camera_class* camera = dComIfGp_getCamera(0);
    cXyz camfwd;
    switch (i_this->mMode) {
    case 0:
        anm_init(i_this, dRes_INDEX_PW_BCK_WAIT1_e, 7.0, J3DFrameCtrl::EMode_LOOP, 1.0, -1);
        i_this->m346 = 0;
        i_this->mMode += 1;
        break;
    case 1:
        if (fopAcM_searchPlayerDistance(i_this) < 500.0f) {
            anm_init(i_this, dRes_INDEX_PW_BCK_DERUA1_e, 3.0f, J3DFrameCtrl::EMode_NONE, 1.0f, -1);
            i_this->m38C = fopAcM_searchPlayerAngleY(i_this);
            i_this->current.angle.y = i_this->m38C;
            i_this->shape_angle.y = i_this->m38C;
            i_this->m3A4 = -80.0f;
            i_this->m340 = 1;
            i_this->mMode += 1;
        }
        break;
    case 2:
        i_this->shape_angle.y += 0x1000;
        cLib_addCalc0(&i_this->m3A4, 1.0f, 3.0f);
        i_this->m39A += 7;
        if (i_this->m39A > 100) {
            i_this->m39A = 100;
        }
        if (i_this->mpMorf->checkFrame(25.0f)) {
            i_this->m3A4 = 0.0f;
            first_mode_change(i_this);
            i_this->m38C = fopAcM_searchPlayerAngleY(i_this);
            JPABaseEmitter* particle = dComIfGp_particle_set(dPa_name::ID_AK_SN_POUGETLAMP00, &i_this->m2CC, &i_this->shape_angle);
            if (particle != NULL) {
                particle->setGlobalRTMatrix(i_this->mpMorf->getModel()->getAnmMtx(PW_JNT_J_PW_ITEM_R1_e));
            }
            i_this->attention_info.flags = 0;
            i_this->mMode = 0x0A;
        }
        break;
    case 9:
        i_this->m39A = 0;
        i_this->m39C = 0;
        i_this->mMode += 1;
        // Fall-through
    case 10:
        if (i_this->mBehaviorType == InvisibleAtStart) {
            i_this->m38C = fopAcM_searchPlayerAngleY(i_this);
        }
        i_this->mKanteraID = fopAcM_create(fpcNm_KANTERA_e, 0xFF000001, &i_this->m2CC, i_this->current.roomNo);
        if (i_this->mKanteraID != fpcM_ERROR_PROCESS_ID_e) {
            i_this->m382 = 5;
            switch (i_this->mBehaviorType) {
            case InvisibleAtStart:
                i_this->mMode = 0xB;
                break;
            case OnlyLanternVisibleAtStart:
                i_this->m341 = 2;
                i_this->mMode = 8;
                break;
            default:
                i_this->m346 = 1;
                i_this->mMode = 0xD;
                break;
            }
        }
        break;
    case 11:
        dKyr_get_vectle_calc(&i_this->current.pos, &camera->mLookat.mEye, &camfwd);
        i_this->mActorPlace.pos.x = i_this->m2CC.x + camfwd.x * 150.0f;
        i_this->mActorPlace.pos.y = i_this->m2CC.y;
        i_this->mActorPlace.pos.z = i_this->m2CC.z + camfwd.z * 150.0f;
        fopAc_ac_c* kantera;
        if (i_this->mKanteraID != fpcM_ERROR_PROCESS_ID_e &&
            fopAcM_SearchByID(i_this->mKanteraID, &kantera) && kantera != NULL &&
            fopAcM_GetName(kantera) == fpcNm_KANTERA_e)
        {
            kantera->current.pos = i_this->m2CC;
            kantera->current.angle.y = i_this->shape_angle.y;
            kantera->scale.setall(1.0f);
            if (i_this->mpMorf->isStop()) {
                i_this->m341 = 0;
                i_this->mBehaviorType = VisibleFromStart;
                first_mode_change(i_this);
                i_this->m382 = 3;
                i_this->m346 = 1;
                i_this->mMode = 0xD;
            }
        }
        break;
    case 6:
        i_this->m39A += 10;
        if (i_this->m39A > 100) {
            i_this->m39A = 100;
        }
        if (i_this->mpMorf->isStop()) {
            i_this->mBehaviorType = VisibleFromStart;
            i_this->m346 = 1;
            first_mode_change(i_this);
            i_this->mMode = 0xD;
        }
        break;
    case 7:
        if (fopAcM_searchPlayerDistance(i_this) < i_this->mNoticeRange) {
            i_this->m38C = fopAcM_searchPlayerAngleY(i_this);
            i_this->current.angle.y = i_this->m38C;
            i_this->shape_angle.y = i_this->m38C;
            anm_init(i_this, dRes_INDEX_PW_BCK_DERUB2_e, 3.0f, J3DFrameCtrl::EMode_NONE, 1.0f, -1);
            i_this->mMode = 6;
        }
        break;
    case 8:
        i_this->m380 = 2;
        i_this->m346 = 1;
        if (fopAcM_searchPlayerDistance(i_this) < i_this->m3AC) {
            anm_init(i_this, dRes_INDEX_PW_BCK_DERUB1_e, 3.0f, J3DFrameCtrl::EMode_LOOP, 1.0f, -1);
            i_this->mMode = 7;
        }
        break;
    case 13:
        for (int i = 0; i < 4; i++) {
            i_this->m384[i] = 0;
        }
        i_this->m340 = 0;
        i_this->m341 = 0;
        i_this->m378 = cM_rndF(60.0f) + 60.0f;
        if (i_this->m346 && i_this->mBckIdx != dRes_INDEX_PW_BCK_WAIT1_e) {
            anm_init(i_this, dRes_INDEX_PW_BCK_WAIT1_e, 7.0f, J3DFrameCtrl::EMode_LOOP, 1.0f, -1);
        } else if (i_this->mBckIdx != dRes_INDEX_PW_BCK_WAIT2_e) {
            anm_init(i_this, dRes_INDEX_PW_BCK_WAIT2_e, 7.0f, J3DFrameCtrl::EMode_LOOP, 1.0f, -1);
        }
        i_this->mMode += 1;
        // Fall-through
    case 14:
        cLib_addCalc0(&i_this->speedF, 1.0f, 1.0f);
        if (i_this->m378) {
            break;
        }
        i_this->mMode += 1;
        // Fall-through
    case 15:
        i_this->m378 = cM_rndF(120.0f) + 120.0f;
        if (i_this->m346 == 1) {
            if (i_this->mBckIdx != dRes_INDEX_PW_BCK_IDOU1_e) {
                anm_init(i_this, dRes_INDEX_PW_BCK_IDOU1_e, 7.0f, J3DFrameCtrl::EMode_LOOP, 1.0f, -1);
            }
        } else {
            if (i_this->mBckIdx != dRes_INDEX_PW_BCK_IDOU2_e) {
                anm_init(i_this, dRes_INDEX_PW_BCK_IDOU2_e, 7.0f, J3DFrameCtrl::EMode_LOOP, 1.0f, -1);
            }
        }
        i_this->m38C += (s16)cM_rndFX(0x4000);
        if (i_this->mPathIndex != 0xFF && i_this->mpPath != NULL) {
            i_this->mMode = 0x14;
        } else {
            i_this->mMode = 0x10;
        }
        break;
    case 16:
        i_this->speedF = 5.0f;
        move_sound(i_this);
        if (i_this->m37A == 0) {
            if (Line_check(i_this, i_this->current.pos, 0) || hani_check(i_this)) {
                i_this->m37A = 10;
            } else if (i_this->m378 == 0) {
                i_this->mMode = 0xF;
            }
        }
        break;
    case 20:
        i_this->m2FC = i_this->current.pos;
        if (i_this->mPathIndex != 0xFF && i_this->mpPath != NULL) {
            i_this->speedF = 5.0f;
            move_sound(i_this);
            dPnt* pnt = &i_this->mpPath->m_points[i_this->mPathPntIdx];
            f32 delta_x = pnt->m_position.x - i_this->current.pos.x;
            f32 delta_z = pnt->m_position.z - i_this->current.pos.z;
            i_this->m38C = cM_atan2s(delta_x, delta_z);
            f32 dist_xz = std::sqrtf(delta_x*delta_x + delta_z*delta_z);
            if (dist_xz < 80.0f) {
                i_this->mPathPntIdx++;
                if (i_this->mPathPntIdx >= i_this->mpPath->m_num) {
                    i_this->mPathPntIdx = 0;
                }
            }
        }
        break;
    case 25:
        i_this->m38C = fopAcM_searchPlayerAngleY(i_this);
        anm_init(i_this, dRes_INDEX_PW_BCK_DAMAGE_K1_e, 9.0f, J3DFrameCtrl::EMode_NONE, 1.0f, -1);
        i_this->speedF = -2.0f;
        i_this->mMode += 1;
        break;
    case 26:
        break;
    case 27:
    case 28:
        if (!fopAcM_CheckStatus(i_this, fopAcStts_HOOK_CARRY_e)) {
            i_this->mMode = 0x5A;
        }
        break;
    case 101:
        if (!i_this->mpMorf->isStop()) {
            break;
        }
        // Fall-through
    case 90:
    case 91:
        // TODO
        Big_pow_gattai_check(i_this);
        break;
    case 92:
        break;
    case 100:
        anm_init(i_this, dRes_INDEX_PW_BCK_JITTAIKA1_e, 6.0f, J3DFrameCtrl::EMode_NONE, 1.0f, -1);
        i_this->mMode += 1;
        break;
    case 110:
        anm_init(i_this, dRes_INDEX_PW_BCK_ATTACK1_e, 7.0f, J3DFrameCtrl::EMode_LOOP, 1.0f, -1);
        // TODO
        i_this->mMode += 1;
        break;
    case 111:
        if (i_this->m5C4.getEmitter() != NULL) {
            i_this->mActorPlace.pos = i_this->current.pos;
            i_this->mActorPlace.angle = i_this->shape_angle;
        }
        if (!i_this->mAcch.ChkGroundHit())
            break;
        i_this->m5C4.remove();
        i_this->speedF = 0.0f;
        i_this->speed.setall(0.0f);
        i_this->gravity = 0.0f;
        anm_init(i_this, dRes_INDEX_PW_BCK_SIRIMOTI1_e, 0.0f, J3DFrameCtrl::EMode_NONE, 1.0f, -1);
        i_this->mMode += 1;
    case 112:
        // Fall-through
        if (i_this->mpMorf->isStop()) {
            i_this->mMode = 90;
        }
        break;
    }
    
    if (i_this->mMode <= 11) {
        return;
    }
    if (i_this->m37C == 0 && i_this->mMode < 90) {
        if (i_this->mMode == 14 || i_this->mMode == 16 || i_this->mMode == 20) {
            if (!hani_check(i_this) && fopAcM_searchPlayerDistance(i_this) < 500.0f && std::fabsf(i_this->current.pos.y - player->current.pos.y) < 100.0f) {
                if (!Line_check(i_this, i_this->current.pos, 1) && (i_this->m346 == 1 || !TORITUKI_ON)) {
                    i_this->mAction = 1;
                    i_this->mMode = 30;
                }
            }
        }
    }
    
    if (i_this->mMode >= 10 && i_this->mMode < 90) {
        alpha_anime(i_this);
    }
    
    if (i_this->mJalhallaID == fpcM_ERROR_PROCESS_ID_e) {
        fuwafuwa_calc(i_this);
    }
}

/* 00003B08-000042B8       .text action_kougeki__FP8pw_class */
void action_kougeki(pw_class*) {
    /* Nonmatching */
}

/* 000042B8-00004C50       .text action_itai__FP8pw_class */
void action_itai(pw_class*) {
    /* Nonmatching */
}

/* 00004C50-00004FFC       .text action_demo__FP8pw_class */
void action_demo(pw_class*) {
    /* Nonmatching */
}

/* 00004FFC-000052B8       .text action_torituku__FP8pw_class */
void action_torituku(pw_class*) {
    /* Nonmatching */
}

/* 000052B8-00005CA4       .text action_big_demo__FP8pw_class */
void action_big_demo(pw_class*) {
    /* Nonmatching */
}

/* 00005CA4-000061FC       .text daPW_Execute__FP8pw_class */
static BOOL daPW_Execute(pw_class*) {
    /* Nonmatching */
}

/* 000061FC-00006204       .text daPW_IsDelete__FP8pw_class */
static BOOL daPW_IsDelete(pw_class*) {
    return TRUE;
}

/* 00006204-000062B0       .text daPW_Delete__FP8pw_class */
static BOOL daPW_Delete(pw_class*) {
    /* Nonmatching */
}

/* 000062B0-000066D8       .text useHeapInit__FP10fopAc_ac_c */
static BOOL useHeapInit(fopAc_ac_c*) {
    /* Nonmatching */
}

/* 00006720-00006BDC       .text daPW_Create__FP10fopAc_ac_c */
static cPhs_State daPW_Create(fopAc_ac_c* i_actor) {
    /* Nonmatching */
    static dCcD_SrcCyl body_co_cyl_src = {
        // dCcD_SrcGObjInf
        {
            /* Flags             */ 0,
            /* SrcObjAt  Type    */ AT_TYPE_SPIKE,
            /* SrcObjAt  Atp     */ 0,
            /* SrcObjAt  SPrm    */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_NoTgHitInfSet_e,
            /* SrcObjTg  Type    */ AT_TYPE_LIGHT_ARROW | AT_TYPE_LIGHT,
            /* SrcObjTg  SPrm    */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_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 | dCcG_TgSPrm_NoHitMark_e,
            /* SrcGObjCo SPrm    */ 0,
        },
        // cM3dGCylS
        {{
            /* Center */ {0.0f, 0.0f, 0.0f},
            /* Radius */ 15.0f,
            /* Height */ 0.0f,
        }},
    };
    static dCcD_SrcSph kantera_co_sph_src = {
        // dCcD_SrcGObjInf
        {
            /* Flags             */ 0,
            /* SrcObjAt  Type    */ AT_TYPE_SPIKE,
            /* SrcObjAt  Atp     */ 2,
            /* SrcObjAt  SPrm    */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_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_GrpAll_e,
            /* SrcObjCo  SPrm    */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_VsGrpAll_e,
            /* SrcGObjAt Se      */ dCcG_SE_METAL,
            /* 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_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 */ 15.0f,
        }},
    };
    fopAcM_ct(i_actor, pw_class);
}

static actor_method_class l_daPW_Method = {
    (process_method_func)daPW_Create,
    (process_method_func)daPW_Delete,
    (process_method_func)daPW_Execute,
    (process_method_func)daPW_IsDelete,
    (process_method_func)daPW_Draw,
};

actor_process_profile_definition g_profile_PW = {
    /* Layer ID     */ fpcLy_CURRENT_e,
    /* List ID      */ 0x0007,
    /* List Prio    */ fpcPi_CURRENT_e,
    /* Proc Name    */ fpcNm_PW_e,
    /* Proc SubMtd  */ &g_fpcLf_Method.base,
    /* Size         */ sizeof(pw_class),
    /* Size Other   */ 0,
    /* Parameters   */ 0,
    /* Leaf SubMtd  */ &g_fopAc_Method.base,
    /* Draw Prio    */ fpcDwPi_PW_e,
    /* Actor SubMtd */ &l_daPW_Method,
    /* Status       */ fopAcStts_SHOWMAP_e | fopAcStts_CULL_e | fopAcStts_UNK40000_e | fopAcStts_UNK80000_e,
    /* Group        */ fopAc_ENEMY_e,
    /* Cull Type    */ fopAc_CULLBOX_CUSTOM_e,
};