Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_lib.h
Go to the documentation of this file.
1#ifndef D_D_LIB_H
2#define D_D_LIB_H
3
5#include "dolphin/mtx/quat.h"
6#include "dolphin/os/OSTime.h"
7
8class fopAc_ac_c;
9
10class JKRAramArchive;
13 cXyz const* param_3);
15
16class STControl {
17public:
19 setWaitParm(15, 15, 0, 0, 0.9f, 0.5f, 0, 0x2000);
20 init();
21 }
22
33
34 /* 80032044 */ STControl(s16 delayY, s16 delayX, s16 param_2, s16 param_3, f32 threshold,
36 /* 80032088 */ void setWaitParm(s16, s16, s16, s16, f32, f32, s16, s16);
37 /* 800320AC */ void init();
38 /* 800320FC */ void Xinit();
39 /* 8003212C */ void Yinit();
40 /* 8003215C */ virtual f32 getValueStick();
41 /* 8003216C */ virtual s16 getAngleStick();
42 /* 8003219C */ u8 checkTrigger();
43 /* 8003242C */ bool checkLeftTrigger();
44 /* 800324A8 */ bool checkRightTrigger();
45 /* 80032524 */ bool checkUpTrigger();
46 /* 800325A0 */ bool checkDownTrigger();
47
50
51 /* 0x04 */ f32 mThreshold;
52 /* 0x08 */ f32 field_0x08;
53 /* 0x0C */ u8 mDirectionTrig;
54 /* 0x0D */ u8 field_0x0d;
55 /* 0x0E */ s16 field_0x0e;
56 /* 0x10 */ s16 field_0x10;
57 /* 0x12 */ s16 mRepeatDelayY;
58 /* 0x14 */ s16 mRepeatDelayX;
59 /* 0x16 */ s16 field_0x16;
60 /* 0x18 */ s16 mXwaitTimer;
61 /* 0x1A */ s16 mYwaitTimer;
62 /* 0x1C */ s16 field_0x1c;
63 /* 0x1E */ s16 field_0x1e;
64 /* 0x20 */ s16 field_0x20;
65 /* 0x22 */ s16 field_0x22;
66 /* 0x24 */ s16 field_0x24;
67 /* 0x26 */ s16 field_0x26;
68 /* 0x28 */ s16 mFirstWaitTime;
69 /* 0x2A */ s16 field_0x2a;
70 /* 0x2C */ s16 field_0x2c;
71}; // Size = 0x30
72
73struct CSTControl : public STControl {
77
78 virtual f32 getValueStick();
79 virtual s16 getAngleStick();
80};
81
83 /* 80032804 */ static OSTime getTime();
84 /* 80032880 */ static void stopTime();
85 /* 800328BC */ static void startTime();
86
89 static bool m_timeStopped;
90};
91
92extern Quaternion ZeroQuat;
93
94#endif /* D_D_LIB_H */
OSTime time
Definition GXInit.c:61
s64 OSTime
Definition OSTime.h:10
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRAramArchive.h:13
Definition d_lib.h:16
s16 field_0x0e
Definition d_lib.h:55
bool checkLeftTrigger()
Definition d_lib.cpp:160
void Yinit()
Definition d_lib.cpp:65
void setWaitParm(s16, s16, s16, s16, f32, f32, s16, s16)
Definition d_lib.cpp:29
s16 field_0x2c
Definition d_lib.h:70
f32 field_0x08
Definition d_lib.h:52
bool checkUpTrigger()
Definition d_lib.cpp:194
bool checkDownTrigger()
Definition d_lib.cpp:211
s16 field_0x20
Definition d_lib.h:64
s16 mYwaitTimer
Definition d_lib.h:61
virtual f32 getValueStick()
Definition d_lib.cpp:73
s16 getYwaitTimer()
Definition d_lib.h:49
void setFirstWaitTime(s16 time)
Definition d_lib.h:48
virtual s16 getAngleStick()
Definition d_lib.cpp:77
STControl()
Definition d_lib.h:18
s16 field_0x2a
Definition d_lib.h:69
s16 field_0x26
Definition d_lib.h:67
s16 mXwaitTimer
Definition d_lib.h:60
u8 mDirectionTrig
Definition d_lib.h:53
s16 mRepeatDelayY
Definition d_lib.h:57
s16 field_0x10
Definition d_lib.h:56
s16 mFirstWaitTime
Definition d_lib.h:68
EStickDir
Definition d_lib.h:23
@ TRIG_DOWN
Definition d_lib.h:29
@ TRIG_LEFT
Definition d_lib.h:24
@ TRIG_UP_LEFT
Definition d_lib.h:27
@ TRIG_UP
Definition d_lib.h:26
@ TRIG_UP_RIGHT
Definition d_lib.h:28
@ TRIG_DOWN_RIGHT
Definition d_lib.h:31
@ TRIG_DOWN_LEFT
Definition d_lib.h:30
@ TRIG_RIGHT
Definition d_lib.h:25
s16 field_0x16
Definition d_lib.h:59
s16 field_0x1c
Definition d_lib.h:62
s16 mRepeatDelayX
Definition d_lib.h:58
u8 checkTrigger()
Definition d_lib.cpp:90
s16 field_0x22
Definition d_lib.h:65
f32 mThreshold
Definition d_lib.h:51
s16 field_0x24
Definition d_lib.h:66
u8 field_0x0d
Definition d_lib.h:54
s16 field_0x1e
Definition d_lib.h:63
void init()
Definition d_lib.cpp:41
bool checkRightTrigger()
Definition d_lib.cpp:177
void Xinit()
Definition d_lib.cpp:56
u32 dLib_getExpandSizeFromAramArchive(JKRAramArchive *arc, char const *resName)
Definition d_lib.cpp:254
Quaternion ZeroQuat
Definition d_lib.cpp:16
BOOL dLib_checkActorInRectangle(fopAc_ac_c *param_0, fopAc_ac_c *param_1, cXyz const *param_2, cXyz const *param_3)
Definition d_lib.cpp:239
u8 dLib_getEventSwitchNo(int param_0)
Definition d_lib.cpp:229
Definition d_lib.h:73
CSTControl(s16 param_0, s16 param_1, s16 param_2, s16 param_3, f32 param_4, f32 param_5, s16 param_6, s16 param_7)
Definition d_lib.h:74
virtual f32 getValueStick()
Definition d_lib.cpp:81
virtual s16 getAngleStick()
Definition d_lib.cpp:85
Definition d_a_hozelda.cpp:16
Definition d_a_hozelda.cpp:20
Definition d_lib.h:82
static OSTime m_stopTime
Definition d_lib.h:88
static OSTime getTime()
Definition d_lib.cpp:284
static void startTime()
Definition d_lib.cpp:304
static void stopTime()
Definition d_lib.cpp:296
static bool m_timeStopped
Definition d_lib.h:89
static OSTime m_diffTime
Definition d_lib.h:87
Definition d_a_ep.cpp:19
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned char u8
Definition types.h:8