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
|
/**
* d_a_obj_graWall.cpp
* Object - Goron Adult Wall (Deleted)
*/
#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_obj_graWall.h"
#include "f_pc/f_pc_name.h"
int daObjGraWall_c::Create() {
fopAcM_ct(this, daObjGraWall_c);
field_0x6e0 = fopAcM_GetParam(this);
if (field_0x6e0 != 0xff) {
if (dComIfGs_isSwitch(field_0x6e0, fopAcM_GetRoomNo(this)) != 0) {
return cPhs_ERROR_e;
}
} else {
/* dSv_event_flag_c::M_029 - Death Mountain (room) - Win wrestle match against Gor Coron */
if (dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[62])) {
return cPhs_ERROR_e;
}
}
col_init();
return cPhs_COMPLEATE_e;
}
int daObjGraWall_c::Execute() {
if (field_0x6e0 != 0xff) {
if (dComIfGs_isSwitch(field_0x6e0, fopAcM_GetRoomNo(this)) != 0) {
fopAcM_delete(this);
return 1;
}
} else {
/* dSv_event_flag_c::M_029 - Death Mountain (room) - Win wrestle match against Gor Coron */
if (dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[62])) {
fopAcM_delete(this);
return 1;
}
}
col_set();
return 1;
}
int daObjGraWall_c::Delete() {
return 1;
}
static const f32 l_DATA[2] = {180.0f, 280.0f};
const static dCcD_SrcCyl l_cyl_src = {
{
{0x0, {{0x0, 0x0, 0x0}, {0x0, 0x0}, 0x19}}, // mObj
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x8}, // mGObjAt
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x0}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
{
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
void daObjGraWall_c::col_init() {
mStts.Init(0xff, 0xff, this);
mCyl.Set(l_cyl_src);
mCyl.SetStts(&mStts);
}
void daObjGraWall_c::col_set() {
mCyl.SetC(current.pos);
mCyl.SetH(l_DATA[1]);
mCyl.SetR(l_DATA[0]);
dComIfG_Ccsp()->Set(&mCyl);
}
static int daObjGraWall_Execute(daObjGraWall_c* i_this) {
return i_this->Execute();
}
static int daObjGraWall_IsDelete(daObjGraWall_c* i_this) {
return 1;
}
static int daObjGraWall_Delete(daObjGraWall_c* i_this) {
return i_this->Delete();
}
static int daObjGraWall_create(fopAc_ac_c* i_this) {
return static_cast<daObjGraWall_c*>(i_this)->Create();
}
static actor_method_class l_daObjGraWall_Method = {
(process_method_func)daObjGraWall_create,
(process_method_func)daObjGraWall_Delete,
(process_method_func)daObjGraWall_Execute,
(process_method_func)daObjGraWall_IsDelete,
(process_method_func)NULL,
};
actor_process_profile_definition g_profile_GRA_WALL = {
/* Layer ID */ fpcLy_CURRENT_e,
/* List ID */ 3,
/* List Prio */ fpcPi_CURRENT_e,
/* Proc Name */ fpcNm_GRA_WALL_e,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjGraWall_c),
/* Size Other */ 0,
/* Parameters */ 0,
/* Leaf SubMtd */ &g_fopAc_Method.base,
/* Draw Prio */ fpcDwPi_GRA_WALL_e,
/* Actor SubMtd */ &l_daObjGraWall_Method,
/* Status */ fopAcStts_UNK_0x40000_e,
/* Group */ fopAc_ACTOR_e,
/* Cull Type */ fopAc_CULLBOX_CUSTOM_e,
};
|