Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_obj_wchain.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_WCHAIN_H
2#define D_A_OBJ_WCHAIN_H
3
5#include "f_op/f_op_actor.h"
6
8public:
9 /* 80D31418 */ void draw();
10 /* 80D318C0 */ ~daObjWchain_shape_c() {}
11};
12
21class daObjWchain_c : public fopAc_ac_c {
22public:
23 /* 80D2FEF8 */ int createHeap();
24 /* 80D2FFBC */ cPhs__Step create();
25 /* 80D30434 */ ~daObjWchain_c();
26 /* 80D30534 */ void setMatrix();
27 /* 80D305E4 */ s16 getChainAngleZ(cXyz*, int);
28 /* 80D3080C */ void setChainPos();
29 /* 80D310AC */ int execute();
30 /* 80D31810 */ int draw();
31
34 cXyz* getChainPos() { return mChainPos; }
37 cXyz& getJumpAimPos() { return eyePos; }
38 cXyz& getTopPos() { return mTopPos; }
39 cXyz& getRoofPos() { return mRoofPos; }
44 f32 getMoveDisRate() { return mPullLength * 0.01f; }
45 f32 getLastOffset() { return 6.0f; }
46 f32 getDownOffset() { return 100.0f; }
47 f32 getSwitchOffset() { return 94.0f; }
48 u8 getSwitchNum() { return mSw; }
49 void onRide() { mRide = true; }
50 void offRide() { mRide = false; }
51 bool checkRideFlg() { return mRide; }
52 void onEndFlg() { mEnd = true; }
53 bool getEndFlg() { return mEnd; }
54 void onNowSwitchFlg() { mDown = mNowSwitch = true; }
55
56private:
58 /* 0x570 */ J3DModel* mpHandleModel;
61 /* 0x588 */ cXyz mTopPos;
62 /* 0x594 */ cXyz mChainPos[0x10];
63 /* 0x654 */ cXyz mChainSpeed[0x10];
64 /* 0x714 */ csXyz mChainAngle[0x10];
65 /* 0x774 */ bool mRide;
66 /* 0x775 */ bool mNowSwitch;
67 /* 0x776 */ bool mEnd;
68 /* 0x777 */ bool mRidePrev;
69 /* 0x778 */ u8 mSw;
70 /* 0x779 */ u8 mRepeatable;
71 /* 0x77A */ bool mReset;
72 /* 0x77B */ bool mDown;
73 /* 0x77C */ s16 mHandleRotation;
74 /* 0x77E */ u16 field_0x77e;
75 /* 0x780 */ s16 mChainRotation[0x10];
76 /* 0x7A0 */ f32 mPullLength;
77 /* 0x7A4 */ f32 mInitOutLength;
78 /* 0x7A8 */ f32 field_0x7a8;
79 /* 0x7AC */ f32 mRealRoofY;
80 /* 0x7B0 */ cXyz mRoofPos;
81};
82
83STATIC_ASSERT(sizeof(daObjWchain_c) == 0x7BC);
84
85#endif /* D_A_OBJ_WCHAIN_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
cPhs__Step
Definition c_phase.h:8
GXLightObj mLightObj
Definition J3DStruct.h:41
Definition J3DPacket.h:100
Wolf Chain.
Definition d_a_obj_wchain.h:21
bool mReset
Definition d_a_obj_wchain.h:71
f32 getLastOffset()
Definition d_a_obj_wchain.h:45
bool mEnd
Definition d_a_obj_wchain.h:67
int execute()
Definition d_a_obj_wchain.cpp:244
f32 mInitOutLength
Definition d_a_obj_wchain.h:77
void onEndFlg()
Definition d_a_obj_wchain.h:52
f32 getSwitchOffset()
Definition d_a_obj_wchain.h:47
J3DModelData * mpChainModelData
Definition d_a_obj_wchain.h:59
request_of_phase_process_class mPhaseReq
Definition d_a_obj_wchain.h:57
csXyz mChainAngle[0x10]
Definition d_a_obj_wchain.h:64
f32 getDownOffset()
Definition d_a_obj_wchain.h:46
f32 getPullLength()
Definition d_a_obj_wchain.h:40
s16 mChainRotation[0x10]
Definition d_a_obj_wchain.h:75
u8 getSwitchNum()
Definition d_a_obj_wchain.h:48
cXyz & getTopPos()
Definition d_a_obj_wchain.h:38
void offRide()
Definition d_a_obj_wchain.h:50
~daObjWchain_c()
Definition d_a_obj_wchain.cpp:94
void onNowSwitchFlg()
Definition d_a_obj_wchain.h:54
f32 getInitOutLength()
Definition d_a_obj_wchain.h:42
void setChainPos()
Definition d_a_obj_wchain.cpp:132
void setPullLength(f32 i_length)
Definition d_a_obj_wchain.h:41
void setMatrix()
Definition d_a_obj_wchain.cpp:105
s16 mHandleRotation
Definition d_a_obj_wchain.h:73
csXyz * getChainAngle()
Definition d_a_obj_wchain.h:35
u8 mRepeatable
Definition d_a_obj_wchain.h:70
GXLightObj * getLightObj()
Definition d_a_obj_wchain.h:32
cPhs__Step create()
Definition d_a_obj_wchain.cpp:35
cXyz & getJumpAimPos()
Definition d_a_obj_wchain.h:37
cXyz & getRoofPos()
Definition d_a_obj_wchain.h:39
bool mRide
Definition d_a_obj_wchain.h:65
f32 getRealRoofY()
Definition d_a_obj_wchain.h:43
J3DModelData * getChainModelData()
Definition d_a_obj_wchain.h:33
u16 field_0x77e
Definition d_a_obj_wchain.h:74
cXyz mChainSpeed[0x10]
Definition d_a_obj_wchain.h:63
f32 mPullLength
Definition d_a_obj_wchain.h:76
u8 mSw
Definition d_a_obj_wchain.h:69
daObjWchain_shape_c mShape
Definition d_a_obj_wchain.h:60
f32 getMoveDisRate()
Definition d_a_obj_wchain.h:44
cXyz mChainPos[0x10]
Definition d_a_obj_wchain.h:62
int draw()
Definition d_a_obj_wchain.cpp:364
bool mNowSwitch
Definition d_a_obj_wchain.h:66
bool mDown
Definition d_a_obj_wchain.h:72
s16 * getChainAngleZ()
Definition d_a_obj_wchain.h:36
f32 mRealRoofY
Definition d_a_obj_wchain.h:79
f32 field_0x7a8
Definition d_a_obj_wchain.h:78
bool checkRideFlg()
Definition d_a_obj_wchain.h:51
cXyz mRoofPos
Definition d_a_obj_wchain.h:80
cXyz mTopPos
Definition d_a_obj_wchain.h:61
bool mRidePrev
Definition d_a_obj_wchain.h:68
cXyz * getChainPos()
Definition d_a_obj_wchain.h:34
int createHeap()
Definition d_a_obj_wchain.cpp:18
void onRide()
Definition d_a_obj_wchain.h:49
J3DModel * mpHandleModel
Definition d_a_obj_wchain.h:58
bool getEndFlg()
Definition d_a_obj_wchain.h:53
Definition d_a_obj_wchain.h:7
~daObjWchain_shape_c()
Definition d_a_obj_wchain.h:10
void draw()
Definition d_a_obj_wchain.cpp:305
STATIC_ASSERT(sizeof(daObjWchain_c)==0x7BC)
Definition d_a_ep.cpp:51
Definition d_a_ep.cpp:155
Definition GXStruct.h:59
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:66
J3DLightObj mLightObj
Definition d_kankyo.h:189
Definition d_a_ep.cpp:19
dKy_tevstr_c tevStr
Definition f_op_actor.h:203
cXyz eyePos
Definition f_op_actor.h:230
Definition d_a_hozelda.cpp:14
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8