Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_cam_param.h
Go to the documentation of this file.
1#ifndef D_D_CAM_PARAM_H
2#define D_D_CAM_PARAM_H
3
5
6struct dCamMath {
7 /* 8008813C */ static f32 rationalBezierRatio(f32, f32);
8 /* 80088284 */ static f32 zoomFovy(f32, f32);
9 /* 8008831C */ static cXyz xyzRotateX(cXyz&, cSAngle);
10 /* 80088384 */ static cXyz xyzRotateY(cXyz&, cSAngle);
11 /* 800883EC */ static f32 xyzHorizontalDistance(cXyz&, cXyz&);
12};
13
14class dCstick_c {
15public:
16 /* 80088434 */ dCstick_c();
17 /* 8008845C */ bool Shift(u32);
18
19 /* 0x0 */ f32 mThresholdLow;
21 /* 0x8 */ int mInputSpeed;
22 /* 0xC */ u8 field_0xc[4];
23
24 /* 800889B0 */ virtual ~dCstick_c() {}
25
26 f32 SwTHH() { return mThresholdHigh; }
27};
28
30public:
31 /* 80088464 */ dCamBGChk_c();
32
40
41 // name is a guess for now
42 struct ChkInfo {
43 /* 0x0 */ f32 mDistance;
44 /* 0x4 */ f32 mChkAngle;
45 /* 0x8 */ f32 mWeightH;
46 /* 0xC */ f32 mWeightL;
47 }; // Size: 0x10
48
49 /* 0x00 */ f32 mFloorMargin;
50 /* 0x04 */ ChkInfo mChkInfo[2];
51 /* 0x24 */ f32 mFwdBackMargin;
52 /* 0x28 */ f32 mFwdCushion;
53 /* 0x2C */ f32 field_0x2c;
54 /* 0x30 */ f32 mGazeBackMargin;
55 /* 0x34 */ f32 mCornerCushion;
56 /* 0x38 */ f32 mWallCushion;
57 /* 0x3C */ f32 mWallUpDistance;
59 /* 0x44 */ f32 mCornerAngleMax;
60};
61
63 struct StyleData {
64 /* 0x0 */ u32 field_0x0;
65 /* 0x4 */ u16 field_0x4;
66 /* 0x6 */ u16 field_0x6;
67 /* 0x8 */ f32 field_0x8[28];
68 }; // Size: 0x78
69
70 /* 0x0 */ u8 field_0x0[4];
71 /* 0x4 */ int mStyleNum;
73};
74
76public:
77 /* 800884F0 */ dCamParam_c(s32);
78 /* 800885D4 */ int Change(s32);
79 /* 80088620 */ int SearchStyle(u32);
80
81 /* 80182C60 */ void Arg2(s16 val) { mMapToolArg2 = val; }
82 /* 80182C3C */ int Arg2() { return mMapToolArg2; }
83 /* 80182C48 */ u8 Arg1() { return mMapToolArg1; }
84 /* 80182C6C */ void Arg1(u8 val) { mMapToolArg1 = val; }
85 /* 80182C50 */ u8 Arg0() { return mMapToolArg0; }
86 /* 80182C74 */ void Arg0(u8 val) { mMapToolArg0 = val; }
87 /* 80182C7C */ void Fovy(u8 val) { mMapToolFovy = val; }
88 /* 80182C58 */ u8 Fovy() { return mMapToolFovy; }
89 /* 80182CB4 */ bool CheckFlag(u16 flag) { return mCurrentStyle->field_0x6 & flag; }
90 /* 80182CD0 */ f32 Val(s32 param_0, int param_1) {
92 }
93
94 /* 0x00 */ u8 mMapToolFovy;
95 /* 0x01 */ u8 mMapToolArg0;
96 /* 0x02 */ u8 mMapToolArg1;
97 /* 0x04 */ int mMapToolArg2;
99 /* 0x0C */ s32 mStyleNum;
101 /* 0x14 */ int mStyleID;
102 /* 0x18 */ u8 field_0x18[4];
103
108
109 /* 8008858C */ virtual ~dCamParam_c() {}
110};
111
113public:
114 /* 80088668 */ dCamSetup_c();
115 /* 80088918 */ bool CheckLatitudeRange(s16*);
116 /* 80088988 */ f32 PlayerHideDist();
117
118 /* 80182BB8 */ bool CheckFlag2(u16 i_flag) { return mFlags2 & i_flag; }
119 /* 80182BE8 */ f32 WaitRollSpeed() { return mWaitRollSpeed; }
120 /* 80182BF0 */ int WaitRollTimer() { return mWaitRollTimer; }
121 /* 80182C1C */ int ThrowTimer() { return mThrowTimer; }
122 /* 80182C24 */ f32 ThrowCushion() { return mThrowCushion; }
123 /* 80182C2C */ f32 ThrowVAngle() { return mThrowVAngle; }
124 /* 80182C34 */ f32 ThrowCtrAdjust() { return mThrowCtrOffset; }
125 /* 80182CEC */ f32 ChargeBRatio() { return mChargeBRatio; }
126 /* 80182CF4 */ int ChargeTimer() { return mChargeTimer; }
127 /* 80182CFC */ f32 ChargeLatitude() { return mChargeLatitude; }
128
137
138 /* 0x000 */ f32 mDrawNear;
139 /* 0x004 */ f32 mDrawFar;
140 /* 0x008 */ u16 mDebugFlags;
141 /* 0x00A */ u16 mFlags2;
142 /* 0x00C */ int field_0xc;
143 /* 0x010 */ int mModeSwitchType;
144 /* 0x014 */ void* mTypeTable;
145 /* 0x018 */ int mTypeNum;
146 /* 0x01C */ int mForceType;
147 /* 0x020 */ f32 mCusCus;
148 /* 0x024 */ f32 field_0x24;
149 /* 0x028 */ f32 field_0x28;
150 /* 0x02C */ f32 field_0x2c;
151 /* 0x030 */ f32 field_0x30;
152 /* 0x034 */ f32 field_0x34;
153 /* 0x038 */ f32 mBaseCushion;
154 /* 0x03C */ f32 mJumpCushion;
155 /* 0x040 */ f32 mParallelDist;
156 /* 0x044 */ f32 field_0x44;
158 /* 0x04C */ f32 mCurveWeight;
159 /* 0x050 */ f32 field_0x50;
160 /* 0x054 */ f32 field_0x54;
161 /* 0x058 */ f32 field_0x58;
162 /* 0x05C */ f32 field_0x5c;
163 /* 0x060 */ f32 field_0x60;
166 /* 0x06C */ f32 field_0x6c;
168 /* 0x074 */ int mForceLockOffTimer;
169 /* 0x078 */ f32 field_0x78;
170 /* 0x07C */ f32 field_0x7c;
171 /* 0x080 */ f32 field_0x80;
172 /* 0x084 */ f32 field_0x84;
173 /* 0x088 */ f32 mThrowVAngle;
174 /* 0x08C */ f32 mThrowCtrOffset;
175 /* 0x090 */ f32 mThrowCushion;
176 /* 0x094 */ int mThrowTimer;
177 /* 0x098 */ f32 mWindShakeCtr;
178 /* 0x09C */ f32 field_0x9c;
179 /* 0x0A0 */ f32 mWindShakeFvy;
180 /* 0x0A4 */ f32 mFalseValue;
181 /* 0x0A8 */ f32 mFalseAngle;
182 /* 0x0AC */ f32 field_0xac;
183 /* 0x0B0 */ int field_0xb0;
184 /* 0x0B4 */ f32 field_0xb4;
186 /* 0x0BC */ f32 mManualEndVal;
187 /* 0x0C0 */ f32 mChargeLatitude;
188 /* 0x0C4 */ int mChargeTimer;
189 /* 0x0C8 */ f32 mChargeBRatio;
190 /* 0x0CC */ int mLockonChangeTimer;
192 /* 0x0D4 */ f32 field_0xd4;
193 /* 0x0D8 */ f32 field_0xd8;
196 /* 0x0E0 */ f32 field_0xe0;
197 /* 0x0E4 */ f32 field_0xe4;
198 /* 0x0E8 */ f32 field_0xe8;
199 /* 0x0EC */ int field_0xec;
200 /* 0x0F0 */ int field_0xf0;
201 /* 0x0F4 */ f32 field_0xf4;
202 /* 0x0F8 */ f32 field_0xf8;
203 /* 0x0FC vtable */
204
205 /* 800888B8 */ virtual ~dCamSetup_c() {}
206
207 /* 0x100 */ dCstick_c mCStick;
208 /* 0x114 */ dCamBGChk_c mBGChk;
209 /* 0x15C */ f32 field_0x15c;
210 /* 0x160 */ f32 field_0x160;
211 /* 0x164 */ int mWaitRollTimer;
212 /* 0x168 */ f32 mWaitRollSpeed;
213 /* 0x16C */ f32 field_0x16c;
215 /* 0x174 */ int mScreensaverWaitTimer;
216 /* 0x178 */ int mScreensaverExecTimer;
217};
218
219#endif /* D_D_CAM_PARAM_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition c_angle.h:6
Definition d_cam_param.h:29
dCamBGChk_c()
Definition d_cam_param.cpp:109
f32 mWallCushion
Definition d_cam_param.h:56
f32 field_0x2c
Definition d_cam_param.h:53
f32 mWallUpDistance
Definition d_cam_param.h:57
f32 mGazeBackMargin
Definition d_cam_param.h:54
s16 FwdChkAngle(s32 param_0)
Definition d_cam_param.h:35
f32 mFwdBackMargin
Definition d_cam_param.h:51
f32 mFwdCushion
Definition d_cam_param.h:52
ChkInfo mChkInfo[2]
Definition d_cam_param.h:50
f32 mFloorMargin
Definition d_cam_param.h:49
f32 mCornerAngleMax
Definition d_cam_param.h:59
f32 mWallBackCushion
Definition d_cam_param.h:58
f32 FwdDistance(s32 param_0)
Definition d_cam_param.h:34
f32 WallUpDistance()
Definition d_cam_param.h:33
f32 FwdCushion()
Definition d_cam_param.h:39
f32 FwdBackMargin()
Definition d_cam_param.h:38
f32 mCornerCushion
Definition d_cam_param.h:55
f32 FwdWeightL(s32 param_0)
Definition d_cam_param.h:37
f32 FwdWeightH(s32 param_0)
Definition d_cam_param.h:36
Definition d_cam_param.h:75
dCamStyleData::StyleData * mCurrentStyle
Definition d_cam_param.h:100
virtual ~dCamParam_c()
Definition d_cam_param.h:109
int Algorythmn()
Definition d_cam_param.h:106
s32 mStyleNum
Definition d_cam_param.h:99
u8 Arg1()
Definition d_cam_param.h:83
void Arg2(s16 val)
Definition d_cam_param.h:81
int Arg2()
Definition d_cam_param.h:82
dCamStyleData::StyleData * mCamStyleData
Definition d_cam_param.h:98
bool CheckFlag(u16 flag)
Definition d_cam_param.h:89
u8 mMapToolFovy
Definition d_cam_param.h:94
u8 mMapToolArg1
Definition d_cam_param.h:96
f32 Val(s32 param_0, int param_1)
Definition d_cam_param.h:90
int SearchStyle(u32)
Definition d_cam_param.cpp:161
int mMapToolArg2
Definition d_cam_param.h:97
int Algorythmn(s32 i_style)
Definition d_cam_param.h:105
u8 mMapToolArg0
Definition d_cam_param.h:95
int Change(s32)
Definition d_cam_param.cpp:148
void Arg0(u8 val)
Definition d_cam_param.h:86
void Arg1(u8 val)
Definition d_cam_param.h:84
int mStyleID
Definition d_cam_param.h:101
void Fovy(u8 val)
Definition d_cam_param.h:87
bool Flag(s32 param_0, u16 param_1)
Definition d_cam_param.h:107
u8 Fovy()
Definition d_cam_param.h:88
u8 field_0x18[4]
Definition d_cam_param.h:102
u8 Arg0()
Definition d_cam_param.h:85
u32 Id(s32 i_style)
Definition d_cam_param.h:104
Definition d_cam_param.h:112
f32 field_0xe4
Definition d_cam_param.h:197
f32 field_0x24
Definition d_cam_param.h:148
f32 field_0xd4
Definition d_cam_param.h:192
u16 mMapToolCamLongTimer
Definition d_cam_param.h:195
f32 mChargeLatitude
Definition d_cam_param.h:187
u16 mDebugFlags
Definition d_cam_param.h:140
f32 USOValue()
Definition d_cam_param.h:135
f32 ChargeBRatio()
Definition d_cam_param.h:125
f32 mJumpCushion
Definition d_cam_param.h:154
int mForceType
Definition d_cam_param.h:146
int field_0xf0
Definition d_cam_param.h:200
f32 field_0x60
Definition d_cam_param.h:163
f32 ForceLockOffDist()
Definition d_cam_param.h:134
int mLockonChangeTimer
Definition d_cam_param.h:190
f32 ThrowCushion()
Definition d_cam_param.h:122
int mScreensaverExecTimer
Definition d_cam_param.h:216
bool CheckFlag(u16 i_flag)
Definition d_cam_param.h:129
virtual ~dCamSetup_c()
Definition d_cam_param.h:205
f32 mThrowCtrOffset
Definition d_cam_param.h:174
f32 field_0xac
Definition d_cam_param.h:182
int mModeSwitchType
Definition d_cam_param.h:143
u16 mMapToolCamShortTimer
Definition d_cam_param.h:194
f32 ThrowVAngle()
Definition d_cam_param.h:123
f32 field_0x30
Definition d_cam_param.h:151
f32 mManualStartCThreshold
Definition d_cam_param.h:185
f32 field_0x44
Definition d_cam_param.h:156
int mThrowTimer
Definition d_cam_param.h:176
f32 mSubjLinkCullDist
Definition d_cam_param.h:157
f32 field_0x15c
Definition d_cam_param.h:209
int mForceLockOffTimer
Definition d_cam_param.h:168
dCstick_c mCStick
Definition d_cam_param.h:207
int mScreensaverWaitTimer
Definition d_cam_param.h:215
u16 mFlags2
Definition d_cam_param.h:141
f32 ThrowCtrAdjust()
Definition d_cam_param.h:124
f32 field_0x28
Definition d_cam_param.h:149
f32 WaitRollSpeed()
Definition d_cam_param.h:119
int mChargeTimer
Definition d_cam_param.h:188
f32 mForceLockOffDist
Definition d_cam_param.h:167
int ChargeTimer()
Definition d_cam_param.h:126
f32 field_0x6c
Definition d_cam_param.h:166
f32 ChargeLatitude()
Definition d_cam_param.h:127
f32 CinemaScopeTrimHeight()
Definition d_cam_param.h:131
int field_0xec
Definition d_cam_param.h:199
f32 mWindShakeCtr
Definition d_cam_param.h:177
int mWaitRollTimer
Definition d_cam_param.h:211
bool CheckFlag2(u16 i_flag)
Definition d_cam_param.h:118
void * mTypeTable
Definition d_cam_param.h:144
f32 field_0x9c
Definition d_cam_param.h:178
bool CheckLatitudeRange(s16 *)
Definition d_cam_param.cpp:260
f32 field_0x2c
Definition d_cam_param.h:150
f32 field_0x160
Definition d_cam_param.h:210
f32 ForceLockOffTimer()
Definition d_cam_param.h:133
f32 field_0x80
Definition d_cam_param.h:171
f32 mCusCus
Definition d_cam_param.h:147
int ThrowTimer()
Definition d_cam_param.h:121
f32 field_0x84
Definition d_cam_param.h:172
f32 mFalseAngle
Definition d_cam_param.h:181
f32 mDrawFar
Definition d_cam_param.h:139
f32 field_0x5c
Definition d_cam_param.h:162
f32 mThrowVAngle
Definition d_cam_param.h:173
f32 mTrimVistaHeight
Definition d_cam_param.h:164
f32 mBaseCushion
Definition d_cam_param.h:153
f32 VistaTrimHeight()
Definition d_cam_param.h:132
f32 mLockonChangeCushion
Definition d_cam_param.h:191
f32 field_0xb4
Definition d_cam_param.h:184
int mTypeNum
Definition d_cam_param.h:145
f32 field_0xe0
Definition d_cam_param.h:196
f32 mChargeBRatio
Definition d_cam_param.h:189
f32 mFalseValue
Definition d_cam_param.h:180
f32 field_0x34
Definition d_cam_param.h:152
f32 field_0x78
Definition d_cam_param.h:169
int field_0xb0
Definition d_cam_param.h:183
f32 mManualEndVal
Definition d_cam_param.h:186
f32 field_0x16c
Definition d_cam_param.h:213
f32 USOAngle()
Definition d_cam_param.h:136
dCamBGChk_c mBGChk
Definition d_cam_param.h:208
int field_0xc
Definition d_cam_param.h:142
f32 field_0xf8
Definition d_cam_param.h:202
dCamSetup_c()
Definition d_cam_param.cpp:179
f32 field_0xf4
Definition d_cam_param.h:201
f32 ManualEndVal()
Definition d_cam_param.h:130
f32 field_0x50
Definition d_cam_param.h:159
f32 mThrowCushion
Definition d_cam_param.h:175
f32 mTrimCineScopeHeight
Definition d_cam_param.h:165
f32 field_0x58
Definition d_cam_param.h:161
f32 field_0x54
Definition d_cam_param.h:160
f32 mWaitRollSpeed
Definition d_cam_param.h:212
int mScreensaverFirstWaitTimer
Definition d_cam_param.h:214
f32 mParallelDist
Definition d_cam_param.h:155
f32 mDrawNear
Definition d_cam_param.h:138
int WaitRollTimer()
Definition d_cam_param.h:120
f32 field_0xd8
Definition d_cam_param.h:193
f32 PlayerHideDist()
Definition d_cam_param.cpp:278
f32 mCurveWeight
Definition d_cam_param.h:158
f32 field_0x7c
Definition d_cam_param.h:170
f32 field_0xe8
Definition d_cam_param.h:198
f32 mWindShakeFvy
Definition d_cam_param.h:179
Definition d_cam_param.h:14
int mInputSpeed
Definition d_cam_param.h:21
u8 field_0xc[4]
Definition d_cam_param.h:22
f32 mThresholdLow
Definition d_cam_param.h:19
f32 SwTHH()
Definition d_cam_param.h:26
virtual ~dCstick_c()
Definition d_cam_param.h:24
f32 mThresholdHigh
Definition d_cam_param.h:20
bool Shift(u32)
Definition d_cam_param.cpp:104
dCstick_c()
Definition d_cam_param.cpp:97
static volatile BOOL flag
Definition dspproc.cpp:20
static s16 d2s(f32 d)
Definition c_angle.h:70
Definition d_a_hozelda.cpp:20
Definition d_cam_param.h:42
f32 mWeightL
Definition d_cam_param.h:46
f32 mDistance
Definition d_cam_param.h:43
f32 mChkAngle
Definition d_cam_param.h:44
f32 mWeightH
Definition d_cam_param.h:45
Definition d_cam_param.h:6
static f32 rationalBezierRatio(f32, f32)
Definition d_cam_param.cpp:13
static f32 zoomFovy(f32, f32)
Definition d_cam_param.cpp:58
static f32 xyzHorizontalDistance(cXyz &, cXyz &)
Definition d_cam_param.cpp:89
static cXyz xyzRotateX(cXyz &, cSAngle)
Definition d_cam_param.cpp:66
static cXyz xyzRotateY(cXyz &, cSAngle)
Definition d_cam_param.cpp:77
Definition d_cam_param.h:63
u16 field_0x6
Definition d_cam_param.h:66
u32 field_0x0
Definition d_cam_param.h:64
u16 field_0x4
Definition d_cam_param.h:65
f32 field_0x8[28]
Definition d_cam_param.h:67
Definition d_cam_param.h:62
u8 field_0x0[4]
Definition d_cam_param.h:70
int mStyleNum
Definition d_cam_param.h:71
StyleData * mStyleData
Definition d_cam_param.h:72
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8