Loading [MathJax]/extensions/MathZoom.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
d_a_obj_kwheel01.h
Go to the documentation of this file.
1#ifndef D_A_OBJ_KWHEEL01_H
2#define D_A_OBJ_KWHEEL01_H
3
4
6#include "d/d_event_lib.h"
8
17public:
20
21 /* 80C4EA78 */ cPhs__Step create1st();
22 /* 80C4EC54 */ void setMtx();
23 /* 80C4EDCC */ int CreateHeap();
24 /* 80C4EF38 */ int Create();
25 /* 80C4F048 */ int Execute(Mtx**);
26 /* 80C4F344 */ int Draw();
27 /* 80C4F3E8 */ int Delete();
28 /* 80C4F498 */ bool eventStart();
29
30private:
31 /* 0x5B8 */ Mtx mNewBgMtx;
32 /* 0x5E8 */ Mtx mTransformMtx;
33 /* 0x618 */ J3DModel* mpModel;
35 /* 0x620 */ fpc_ProcID m_klift_pid[4]; // JUT_ASSERT debug string shows this was called m_klift_pid
36 /* 0x630 */ dBgW* mKLiftCollisions[4];
37 /* 0x640 */ Mtx mKLiftBaseMatrices[4];
38 /* 0x700 */ u8 mCreatedKLifts;
39
40 // Switch number to check if water is flowing and the gear should turn, and whether the gear should accelerate to the target speed or start off at it
41 int getSwNo() {
42 return fopAcM_GetParamBit(this, 0, 8);
43 }
44
45 // Determines rotational direction of gear; 0 = counter-clockwise, 1 = clockwise
47 return fopAcM_GetParamBit(this, 8, 1);
48 }
49
50 int getEvent() {
51 return fopAcM_GetParamBit(this, 9, 8);
52 }
53
54 // Determines the number of chain models each lift should use
56 return fopAcM_GetParamBit(this, 17, 6);
57 }
58
59 // Determines whether each of 4 potential lifts should be created and/or updated
61 return fopAcM_GetParamBit(this, 23, 4);
62 }
63
65 return fopAcM_GetParamBit(this, 27, 1);
66 }
67};
68
70
80
81#endif /* D_A_OBJ_KWHEEL01_H */
cPhs__Step
Definition c_phase.h:8
Definition JORMContext.h:96
Definition d_bg_s_movebg_actor.h:10
Definition d_bg_w.h:254
Definition d_event_lib.h:24
Water Wheel/Gear.
Definition d_a_obj_kwheel01.h:16
dBgW * mKLiftCollisions[4]
Definition d_a_obj_kwheel01.h:36
int Draw()
Definition d_a_obj_kwheel01.cpp:300
~daObjKWheel01_c()
Definition d_a_obj_kwheel01.h:19
u32 getArg0()
Definition d_a_obj_kwheel01.h:46
int Create()
Definition d_a_obj_kwheel01.cpp:170
int getEvent()
Definition d_a_obj_kwheel01.h:50
void setMtx()
Definition d_a_obj_kwheel01.cpp:117
int getSwNo()
Definition d_a_obj_kwheel01.h:41
J3DModel * mpModel
Definition d_a_obj_kwheel01.h:33
bool eventStart()
Definition d_a_obj_kwheel01.cpp:328
Mtx mTransformMtx
Definition d_a_obj_kwheel01.h:32
daObjKWheel01_c()
Definition d_a_obj_kwheel01.h:18
int CreateHeap()
Definition d_a_obj_kwheel01.cpp:141
Mtx mNewBgMtx
Definition d_a_obj_kwheel01.h:31
u8 mCreatedKLifts
Definition d_a_obj_kwheel01.h:38
s16 mYAngularVelocity
Definition d_a_obj_kwheel01.h:34
fpc_ProcID m_klift_pid[4]
Definition d_a_obj_kwheel01.h:35
cPhs__Step create1st()
Definition d_a_obj_kwheel01.cpp:61
Mtx mKLiftBaseMatrices[4]
Definition d_a_obj_kwheel01.h:37
int Delete()
Definition d_a_obj_kwheel01.cpp:312
u32 getOut()
Definition d_a_obj_kwheel01.h:64
u32 getArg2()
Definition d_a_obj_kwheel01.h:55
u32 getArg4567()
Definition d_a_obj_kwheel01.h:60
int Execute(Mtx **)
Definition d_a_obj_kwheel01.cpp:208
Definition m_Do_hostIO.h:27
STATIC_ASSERT(sizeof(daObjKWheel01_c)==0x704)
u32 fopAcM_GetParamBit(void *ac, u8 shift, u8 bit)
Definition f_op_actor_mng.h:186
unsigned int fpc_ProcID
Definition f_pc_base.h:10
f32 Mtx[3][4]
Definition mtx.h:22
Definition d_a_hozelda.cpp:146
Definition d_a_obj_kwheel01.h:71
void genMessage(JORMContext *)
Definition d_a_obj_kwheel01.cpp:42
s16 mTargetYAngularSpeed
Definition d_a_obj_kwheel01.h:77
~daObjKWheel01_HIO_c()
Definition d_a_obj_kwheel01.h:73
daObjKWheel01_HIO_c()
Definition d_a_obj_kwheel01.cpp:37
s16 mYAngularAcceleration
Definition d_a_obj_kwheel01.h:78
Definition d_a_hozelda.cpp:14
unsigned long u32
Definition types.h:9
signed short int s16
Definition types.h:6
unsigned char u8
Definition types.h:5