Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_syRock.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_SYROCK_H
2#define D_A_OBJ_SYROCK_H
3
6
16 u8 a[8];
17};
18
20public:
22 /* 80D03DAC */ ~daSyRock_c() {};
23
24 /* 80D0237C */ void setBaseMtx();
25 /* 80D02454 */ int CreateHeap();
26 /* 80D02584 */ cPhs__Step create();
27 /* 80D02AFC */ void setFallStat();
28 /* 80D02BE0 */ int Execute(Mtx**);
29 /* 80D02C54 */ void move();
30 /* 80D02E70 */ void init_modeWait();
31 /* 80D02E7C */ void modeWait();
32 /* 80D02F88 */ BOOL eventStart();
33 /* 80D02FB8 */ void init_modeDropInit();
34 /* 80D03070 */ void modeDropInit();
35 /* 80D030A8 */ static void* searchWaterPillar(void*, void*);
36 /* 80D03250 */ void init_modeDrop();
37 /* 80D03384 */ void modeDrop();
38 /* 80D033D0 */ void init_modeSink();
39 /* 80D03440 */ void modeSink();
40 /* 80D034E8 */ void init_modeMove();
41 /* 80D035F8 */ void modeMove();
42 /* 80D036B8 */ BOOL chkWaterLineIn();
43 /* 80D036DC */ void bgCheck();
44 /* 80D03984 */ void init_modeDropEnd();
45 /* 80D03A48 */ void modeDropEnd();
46 /* 80D03A4C */ int Draw();
47 /* 80D03B08 */ int Delete();
48
49 static dCcD_SrcGObjInf const mCcDObjInfo;
50 static dCcD_SrcCyl mCcDCyl;
51
52private:
54 /* 0x5C0 */ J3DModel* mpModels[2];
55 /* 0x5C8 */ u8 mMode;
57 /* 0x5CC */ dCcD_Stts mStts;
58 /* 0x608 */ dCcD_Cyl mUnbrokenCylinderCollider; // Collider used to check for bomb/bomb arrow for breaking stalactite
59 /* 0x744 */ u8 mWaitFrames;
62 /* 0x754 */ f32 mShakeAmplitude;
65 /* 0x760 */ f32 mShakeDamping;
66 /* 0x764 */ f32 mShakeMaxDecay;
67 /* 0x768 */ f32 mShakeMinDecay;
69 /* 0x778 */ bool mInWaterPreviousFrame;
70 /* 0x779 */ u8 field_0x779; // Redundant variable, thus left unnamed
72 /* 0x7BC */ dBgS_ObjAcch mAcch;
74 /* 0x998 */ dBgW* mpBrokenCollision; // Collision of broken stalactite
75 /* 0x99C */ u8 mIsUnbroken;
76
77 // Stalactite should search for an associated water pillar on creation
79 return shape_angle.x & 0xF;
80 }
82 // Switch to determine whether or not the stalactite has been broken
84 return fopAcM_GetParamBit(this, 0, 8);
85 }
86
87 // Switch to determine whether or not the stalactite should be broken automatically when player is in range
89 return fopAcM_GetParamBit(this, 8, 8);
90 }
91
92 // Event ID for Midna to stop and note the stalactite that fell by itself
94 return fopAcM_GetParamBit(this, 16, 8);
95 }
96
105};
106
107STATIC_ASSERT(sizeof(daSyRock_c) == 0x9a0);
108
110public:
111 /* 80D022AC */ daSyRock_HIO_c();
112 /* 80D03C44 */ ~daSyRock_HIO_c() {};
113
114 /* 0x04 */ f32 mShakeAmplitude; // "揺れ強さ" "Shake strength" | Slider
115 /* 0x08 */ f32 mShakeXOscillationAngle; // "振幅X" "Amplitude X" | Slider
116 /* 0x0C */ f32 mShakeZOscillationAngle; // "振幅Z" "Amplitude Z" | Slider
117 /* 0x10 */ f32 mShakeDamping; // "揺れ減衰" "Shake damping" | Slider
118 /* 0x14 */ f32 mShakeMaxDecay; // "最大減衰量" "Maximum decay" | Slider
119 /* 0x18 */ f32 mShakeMinDecay; // "最小減衰量" "Minimum decay" | Slider
120 /* 0x1C */ f32 mFallAcceleration; // "落下速度" "Fall speed" | Slider
121 /* 0x20 */ f32 mMaxFallSpeed; // "最大落下速度" "Maximum falling speed" | Slider
122 /* 0x24 */ u8 mWaitFrames; // "wait time" | Slider (unused)
123 /* 0x25 */ u8 mShockStrength; // "振動" "Vibration" | Combo Box
124 /* "強さ1" "Strength 1"
125 "強さ2" "Strength 2"
126 "強さ3" "Strength 3"
127 "強さ4" "Strength 4"
128 "強さ5" "Strength 5"
129 "強さ6" "Strength 6"
130 "強さ7" "Strength 7"
131 "強さ8" "Strength 8" */
132 /* 0x28 */ f32 mEffectScale; // "eff scale" | Slider
133 /* 0x2C */ f32 mFallWaterBouyancy; // "sink speed" | Slider
134 /* 0x30 */ f32 mMaxWaterPillarRange; // "renge" | "Range" | Slider
135};
136
137
138#endif /* D_A_OBJ_SYROCK_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:79
cPhs__Step
Definition c_phase.h:8
Definition d_bg_s_movebg_actor.h:10
Definition d_bg_w.h:252
Definition d_event_lib.h:24
Definition d_a_obj_syRock.h:109
~daSyRock_HIO_c()
Definition d_a_obj_syRock.h:112
f32 mShakeMaxDecay
Definition d_a_obj_syRock.h:118
f32 mShakeAmplitude
Definition d_a_obj_syRock.h:114
u8 mShockStrength
Definition d_a_obj_syRock.h:123
f32 mShakeXOscillationAngle
Definition d_a_obj_syRock.h:115
daSyRock_HIO_c()
Definition d_a_obj_syRock.cpp:25
f32 mMaxWaterPillarRange
Definition d_a_obj_syRock.h:134
u8 mWaitFrames
Definition d_a_obj_syRock.h:122
f32 mShakeDamping
Definition d_a_obj_syRock.h:117
f32 mFallAcceleration
Definition d_a_obj_syRock.h:120
f32 mFallWaterBouyancy
Definition d_a_obj_syRock.h:133
f32 mShakeMinDecay
Definition d_a_obj_syRock.h:119
f32 mMaxFallSpeed
Definition d_a_obj_syRock.h:121
f32 mShakeZOscillationAngle
Definition d_a_obj_syRock.h:116
f32 mEffectScale
Definition d_a_obj_syRock.h:132
Stalactite Rock.
Definition d_a_obj_syRock.h:19
static dCcD_SrcCyl mCcDCyl
Definition d_a_obj_syRock.h:22
void modeDropEnd()
Definition d_a_obj_syRock.cpp:471
void bgCheck()
Definition d_a_obj_syRock.cpp:402
u8 field_0x779
Definition d_a_obj_syRock.h:70
J3DModel * mpModels[2]
Definition d_a_obj_syRock.h:54
bool mInWaterPreviousFrame
Definition d_a_obj_syRock.h:69
int Delete()
Definition d_a_obj_syRock.cpp:488
void init_modeMove()
Definition d_a_obj_syRock.cpp:354
void modeWait()
Definition d_a_obj_syRock.cpp:230
~daSyRock_c()
Definition d_a_obj_syRock.h:22
u8 mDropAutomaticallySwitchNo
Definition d_a_obj_syRock.h:56
u32 mShakeOscillationAngleStep
Definition d_a_obj_syRock.h:60
f32 mShakeMaxDecay
Definition d_a_obj_syRock.h:66
Mode_e
Definition d_a_obj_syRock.h:97
@ MODE_SINK
Definition d_a_obj_syRock.h:101
@ MODE_DROP_END
Definition d_a_obj_syRock.h:103
@ MODE_WAIT
Definition d_a_obj_syRock.h:98
@ MODE_MOVE
Definition d_a_obj_syRock.h:102
@ MODE_DROP_INIT
Definition d_a_obj_syRock.h:99
@ MODE_DROP
Definition d_a_obj_syRock.h:100
void modeDropInit()
Definition d_a_obj_syRock.cpp:277
daWtPillar_c * mpWaterPillar
Definition d_a_obj_syRock.h:73
int CreateHeap()
Definition d_a_obj_syRock.cpp:56
void move()
Definition d_a_obj_syRock.cpp:197
void init_modeDropEnd()
Definition d_a_obj_syRock.cpp:454
dBgW * mpBrokenCollision
Definition d_a_obj_syRock.h:74
static dCcD_SrcGObjInf const mCcDObjInfo
Definition d_a_obj_syRock.h:81
void init_modeWait()
Definition d_a_obj_syRock.cpp:225
void modeSink()
Definition d_a_obj_syRock.cpp:341
daSyRock_c()
Definition d_a_obj_syRock.h:21
dBgS_AcchCir mAcchCir
Definition d_a_obj_syRock.h:71
void modeMove()
Definition d_a_obj_syRock.cpp:378
csXyz mShakeXZAngleOffset
Definition d_a_obj_syRock.h:61
void setFallStat()
Definition d_a_obj_syRock.cpp:158
int Execute(Mtx **)
Definition d_a_obj_syRock.cpp:184
u8 mWaitFrames
Definition d_a_obj_syRock.h:59
s32 getEvetID()
Definition d_a_obj_syRock.h:93
f32 mShakeMinDecay
Definition d_a_obj_syRock.h:67
u32 getSwBit1()
Definition d_a_obj_syRock.h:83
cPhs__Step create()
Definition d_a_obj_syRock.cpp:89
f32 mShakeXOscillationAngle
Definition d_a_obj_syRock.h:63
u8 mMode
Definition d_a_obj_syRock.h:55
u32 getSwBit2()
Definition d_a_obj_syRock.h:88
request_of_phase_process_class mPhase
Definition d_a_obj_syRock.h:53
dCcD_Cyl mUnbrokenCylinderCollider
Definition d_a_obj_syRock.h:58
void init_modeSink()
Definition d_a_obj_syRock.cpp:330
f32 mShakeZOscillationAngle
Definition d_a_obj_syRock.h:64
void init_modeDrop()
Definition d_a_obj_syRock.cpp:302
dBgS_ObjAcch mAcch
Definition d_a_obj_syRock.h:72
BOOL getArg0()
Definition d_a_obj_syRock.h:78
f32 mShakeAmplitude
Definition d_a_obj_syRock.h:62
BOOL eventStart()
Definition d_a_obj_syRock.cpp:253
void setBaseMtx()
Definition d_a_obj_syRock.cpp:42
void init_modeDropInit()
Definition d_a_obj_syRock.cpp:263
void modeDrop()
Definition d_a_obj_syRock.cpp:323
cXyz mUnderwaterRotatedStalactiteOffset
Definition d_a_obj_syRock.h:68
static void * searchWaterPillar(void *, void *)
Definition d_a_obj_syRock.cpp:285
int Draw()
Definition d_a_obj_syRock.cpp:476
dCcD_Stts mStts
Definition d_a_obj_syRock.h:57
u8 mIsUnbroken
Definition d_a_obj_syRock.h:75
BOOL chkWaterLineIn()
Definition d_a_obj_syRock.cpp:397
f32 mShakeDamping
Definition d_a_obj_syRock.h:65
Water Column/Pillar.
Definition d_a_obj_waterPillar.h:22
Definition m_Do_hostIO.h:5
STATIC_ASSERT(sizeof(daSyRock_c)==0x9a0)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:170
f32 Mtx[3][4]
Definition mtx.h:15
Definition d_a_ep.cpp:155
s16 x
Definition vec.h:19
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:66
Definition d_a_npc_fguard.cpp:98
Definition d_a_npc_fguard.cpp:94
Definition d_a_npc_fguard.cpp:86
Definition d_a_npc_fguard.cpp:74
Definition d_cc_d.h:85
Definition d_a_npc_fguard.cpp:70
Definition d_a_obj_syRock.h:15
u8 a[8]
Definition d_a_obj_syRock.h:16
csXyz shape_angle
Definition f_op_actor.h:216
Definition d_a_hozelda.cpp:14
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8