Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2EnvSeMgr.h
Go to the documentation of this file.
1#ifndef Z2ENVSEMGR_H
2#define Z2ENVSEMGR_H
3
4#include "Z2AudioLib/Z2Calc.h"
6
13
15 /* 802C589C */ Z2EnvSeBase(Vec* param_0 = NULL);
16 /* 802C58AC */ ~Z2EnvSeBase();
17 /* 802C5908 */ bool startEnvSe(JAISoundID, f32, f32, f32, f32, f32, u32);
18 /* 802C5AB4 */ bool startEnvSeLevel(JAISoundID, f32, f32, f32, f32, f32, u32);
19
21 void setPos(Vec* pos) { mPos = pos; }
22
23 /* 0x0 */ Vec* mPos;
25}; // Size: 0x8
26
27struct Z2EnvSeAutoPan : public Z2EnvSeBase {
28 /* 802C5ECC */ Z2EnvSeAutoPan();
29 /* 802C5F28 */ ~Z2EnvSeAutoPan();
30 /* 802C5F7C */ void setPanParam(f32, f32, bool, bool, f32, f32);
31 /* 802C5F98 */ void calcPan();
32 /* 802C60E0 */ bool startEnvSeAutoPanLevel(JAISoundID, f32, f32, f32);
33
34 /* 0x08 */ f32 field_0x8;
35 /* 0x0C */ f32 field_0xc;
36 /* 0x10 */ f32 field_0x10;
37 /* 0x14 */ f32 field_0x14;
38 /* 0x18 */ bool field_0x18;
39 /* 0x19 */ bool field_0x19;
40}; // Size: 0x1C
41
42struct Z2EnvSeDir : public Z2EnvSeBase {
43 /* 802C5C9C */ Z2EnvSeDir(Vec* param_0 = NULL);
44 /* 802C5D1C */ ~Z2EnvSeDir();
45 /* 802C5D70 */ void setPanDir(Vec*);
46 /* 802C5D9C */ void calcPan(f32);
47 /* 802C5E90 */ bool startEnvSeDirLevel(JAISoundID, f32, f32);
48
49 /* 0x08 */ f32 field_0x8;
50 /* 0x0C */ f32 field_0xc;
51 /* 0x10 */ Vec mPanDir;
52}; // Size: 0x1C
53
54struct Z2EnvSeMgr : public JASGlobalInstance<Z2EnvSeMgr> {
55 /* 802C611C */ Z2EnvSeMgr();
56 /* 802C6540 */ ~Z2EnvSeMgr();
57 /* 802C66B0 */ void framework();
58 /* 802C6998 */ void resetScene();
59 /* 802C699C */ void resetSceneInner();
60 /* 802C6AC0 */ void initSceneEnvSe(s32, s8, f32);
61 /* 802C6C1C */ void playSceneEnvSe();
62 /* 802C6C84 */ void initStaticEnvSe(u8, u8, u8, u8, Vec*);
63 /* 802C70C8 */ bool startStaticEnvSe(s8);
64 /* 802C780C */ void registWindowPos(Vec*);
65 /* 802C7830 */ bool startRainSe(s32, s8);
66 /* 802C7CF4 */ void startNearThunderSe(s8);
67 /* 802C7E68 */ void startFarThunderSe(Vec*, s8);
68 /* 802C7FB4 */ void setSnowPower(s8);
69 /* 802C7FBC */ void initStrongWindSe();
70 /* 802C7FC8 */ void setWindDirection(Vec*);
71 /* 802C800C */ bool startStrongWindSe(s8);
72 /* 802C80F8 */ void initRiverSe(u8, u8, u8, u8);
73 /* 802C8234 */ void registRiverSePos(Vec*);
74 /* 802C8258 */ void setHyrulSewerOpen(bool);
75 /* 802C8300 */ bool startRiverSe(s8);
76 /* 802C8730 */ void initFallSe(u8, u8, u8, u8);
77 /* 802C886C */ void registFallSePos(Vec*);
78 /* 802C8890 */ bool startFallSe(s8);
79 /* 802C8A90 */ void initEtcSe(u8, u8, u8, u8);
80 /* 802C8C24 */ void registEtcSePos(Vec*);
81 /* 802C8C48 */ bool startEtcSe(s8);
82 /* 802C92C8 */ void registWolfSmellSePos(Vec*);
83 /* 802C92EC */ bool startFogWipeTrigger(Vec*);
84 /* 802C93A0 */ void setFogWipeWidth(f32);
85 /* 802C93E4 */ f32 getFogDensity();
86 /* 802C9400 */ bool startFogSe();
87 /* 802C950C */ void initLv3WaterSe(u8, u8, u8, u8);
88 /* 802C9F58 */ void registLv3WaterSePos(u8, Vec*);
89 /* 802CA794 */ void startLv3WaterSe(s8);
90
95 initEtcSe(param_0, param_1, param_2, param_3);
96 }
97
100 /* 0x038 */ u8 field_0x38;
101 /* 0x039 */ u8 field_0x39;
102 /* 0x03C */ Vec field_0x3c;
103 /* 0x048 */ f32 field_0x48;
104 /* 0x04C */ f32 field_0x4c;
105 /* 0x050 */ f32 field_0x50;
106 /* 0x054 */ f32 field_0x54;
107 /* 0x058 */ f32 field_0x58;
108 /* 0x05C */ f32 field_0x5c;
109 /* 0x060 */ f32 field_0x60;
125 /* 0x140 */ s8 field_0x140;
126 /* 0x141 */ s8 mSnowPower;
128 /* 0x160 */ u8 mWindType;
131 /* 0x188 */ u8 field_0x188;
134 /* 0x1AC */ f32 field_0x1ac;
135 /* 0x1B0 */ f32 field_0x1b0;
136 /* 0x1B4 */ f32 field_0x1b4;
137 /* 0x1B8 */ s8 field_0x1b8;
140 /* 0x1E0 */ u8 field_0x1e0;
141 /* 0x1E4 */ f32 field_0x1e4;
142 /* 0x1E8 */ f32 field_0x1e8;
143 /* 0x1EC */ f32 field_0x1ec;
146 /* 0x214 */ u8 field_0x214;
147 /* 0x218 */ f32 field_0x218;
148 /* 0x21C */ f32 field_0x21c;
149 /* 0x220 */ f32 field_0x220;
152 /* 0x248 */ u8 field_0x248;
153 /* 0x24C */ f32 field_0x24c;
154 /* 0x250 */ f32 field_0x250;
155 /* 0x254 */ f32 field_0x254;
158 /* 0x27C */ u8 field_0x27c;
159 /* 0x280 */ f32 field_0x280;
160 /* 0x284 */ f32 field_0x284;
161 /* 0x288 */ f32 field_0x288;
164 /* 0x2B0 */ u8 field_0x2b0;
165 /* 0x2B4 */ f32 field_0x2b4;
166 /* 0x2B8 */ f32 field_0x2b8;
167 /* 0x2BC */ f32 field_0x2bc;
170 /* 0x2E4 */ u8 field_0x2e4;
173 /* 0x308 */ f32 mFogDensity;
174}; // Size: 0x30C
175
176STATIC_ASSERT(sizeof(Z2EnvSeMgr) == 0x30C);
177
179
183
184#endif /* Z2ENVSEMGR_H */
Z2EnvSeMgr * Z2GetEnvSeMgr()
Definition Z2EnvSeMgr.h:180
STATIC_ASSERT(sizeof(Z2EnvSeMgr)==0x30C)
WindType
Definition Z2EnvSeMgr.h:7
@ WIND_TYPE_1
Definition Z2EnvSeMgr.h:9
@ WIND_TYPE_3
Definition Z2EnvSeMgr.h:11
@ WIND_TYPE_0
Definition Z2EnvSeMgr.h:8
@ WIND_TYPE_2
Definition Z2EnvSeMgr.h:10
Z2EnvSeMgr g_mEnvSeMgr
Definition d_kankyo.cpp:2608
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JAISoundHandles.h:14
Definition JASGadget.h:12
static T * getInstance()
Definition JASGadget.h:31
static u8 pos[12]
Definition d_a_obj_kago.cpp:839
Definition d_a_obj_sekizoa.cpp:447
Definition d_a_hozelda.cpp:18
Definition Z2Calc.h:13
Definition Z2EnvSeMgr.h:27
f32 field_0xc
Definition Z2EnvSeMgr.h:35
void calcPan()
Definition Z2EnvSeMgr.cpp:155
bool startEnvSeAutoPanLevel(JAISoundID, f32, f32, f32)
Definition Z2EnvSeMgr.cpp:190
Z2EnvSeAutoPan()
Definition Z2EnvSeMgr.cpp:131
f32 field_0x10
Definition Z2EnvSeMgr.h:36
bool field_0x19
Definition Z2EnvSeMgr.h:39
f32 field_0x14
Definition Z2EnvSeMgr.h:37
~Z2EnvSeAutoPan()
Definition Z2EnvSeMgr.cpp:141
void setPanParam(f32, f32, bool, bool, f32, f32)
Definition Z2EnvSeMgr.cpp:144
bool field_0x18
Definition Z2EnvSeMgr.h:38
f32 field_0x8
Definition Z2EnvSeMgr.h:34
Definition Z2EnvSeMgr.h:14
JAISoundHandle * getHandle()
Definition Z2EnvSeMgr.h:20
JAISoundHandle mHandle
Definition Z2EnvSeMgr.h:24
~Z2EnvSeBase()
Definition Z2EnvSeMgr.cpp:19
void setPos(Vec *pos)
Definition Z2EnvSeMgr.h:21
bool startEnvSe(JAISoundID, f32, f32, f32, f32, f32, u32)
Definition Z2EnvSeMgr.cpp:23
Vec * mPos
Definition Z2EnvSeMgr.h:23
bool startEnvSeLevel(JAISoundID, f32, f32, f32, f32, f32, u32)
Definition Z2EnvSeMgr.cpp:51
Definition Z2EnvSeMgr.h:42
f32 field_0xc
Definition Z2EnvSeMgr.h:50
Vec mPanDir
Definition Z2EnvSeMgr.h:51
void setPanDir(Vec *)
Definition Z2EnvSeMgr.cpp:101
bool startEnvSeDirLevel(JAISoundID, f32, f32)
Definition Z2EnvSeMgr.cpp:126
~Z2EnvSeDir()
Definition Z2EnvSeMgr.cpp:98
f32 field_0x8
Definition Z2EnvSeMgr.h:49
void calcPan(f32)
Definition Z2EnvSeMgr.cpp:108
Definition Z2EnvSeMgr.h:54
Z2EnvSeBase field_0x88
Definition Z2EnvSeMgr.h:112
bool startEtcSe(s8)
Definition Z2EnvSeMgr.cpp:1177
f32 field_0x4c
Definition Z2EnvSeMgr.h:104
Z2EnvSeAutoPan field_0x0
Definition Z2EnvSeMgr.h:98
Z2Calc::FNoise1f field_0x18c
Definition Z2EnvSeMgr.h:132
void initLv3WaterSe(u8, u8, u8, u8)
Definition Z2EnvSeMgr.cpp:1342
void startSmellSe(s8 param_0)
Definition Z2EnvSeMgr.h:93
f32 field_0x2b8
Definition Z2EnvSeMgr.h:166
Z2Calc::FNoise1f field_0xa0
Definition Z2EnvSeMgr.h:114
Z2EnvSeBase field_0x80
Definition Z2EnvSeMgr.h:111
f32 field_0x280
Definition Z2EnvSeMgr.h:159
u8 field_0x38
Definition Z2EnvSeMgr.h:100
Z2EnvSeBase field_0x20c
Definition Z2EnvSeMgr.h:145
void startNearThunderSe(s8)
Definition Z2EnvSeMgr.cpp:850
Z2EnvSeMgr()
Definition Z2EnvSeMgr.cpp:197
bool startStrongWindSe(s8)
Definition Z2EnvSeMgr.cpp:898
void initRiverSe(u8, u8, u8, u8)
Definition Z2EnvSeMgr.cpp:920
void framework()
Definition Z2EnvSeMgr.cpp:234
~Z2EnvSeMgr()
Definition Z2EnvSeMgr.cpp:231
bool startRiverSe(s8)
Definition Z2EnvSeMgr.cpp:972
u8 field_0x39
Definition Z2EnvSeMgr.h:101
f32 field_0x250
Definition Z2EnvSeMgr.h:154
Z2Calc::FNoise1f field_0x120
Definition Z2EnvSeMgr.h:123
Z2EnvSeDir field_0x144
Definition Z2EnvSeMgr.h:127
Z2EnvSeBase field_0x180
Definition Z2EnvSeMgr.h:130
Z2EnvSeBase field_0x1d8
Definition Z2EnvSeMgr.h:139
void registRiverSePos(Vec *)
Definition Z2EnvSeMgr.cpp:954
Z2Calc::FNoise1f field_0xc0
Definition Z2EnvSeMgr.h:116
void registWindowPos(Vec *)
Definition Z2EnvSeMgr.cpp:748
u8 field_0x188
Definition Z2EnvSeMgr.h:131
s8 field_0x140
Definition Z2EnvSeMgr.h:125
bool startFallSe(s8)
Definition Z2EnvSeMgr.cpp:1092
void resetScene()
Definition Z2EnvSeMgr.cpp:301
f32 field_0x2bc
Definition Z2EnvSeMgr.h:167
f32 field_0x1e8
Definition Z2EnvSeMgr.h:142
void registEtcSePos(Vec *)
Definition Z2EnvSeMgr.cpp:1172
void registSmellSePos(Vec *param_0)
Definition Z2EnvSeMgr.h:92
Z2MultiSeMgr mRiverSeMgr
Definition Z2EnvSeMgr.h:129
f32 field_0x254
Definition Z2EnvSeMgr.h:155
Z2MultiSeMgr field_0x258
Definition Z2EnvSeMgr.h:156
void initStrongWindSe()
Definition Z2EnvSeMgr.cpp:883
Z2Calc::FNoise1f field_0x100
Definition Z2EnvSeMgr.h:120
f32 field_0x220
Definition Z2EnvSeMgr.h:149
void startLv3WaterSe(s8)
Definition Z2EnvSeMgr.cpp:1719
bool startRainSe(s32, s8)
Definition Z2EnvSeMgr.cpp:753
Z2MultiSeMgr field_0x64
Definition Z2EnvSeMgr.h:110
void setSnowPower(s8)
Definition Z2EnvSeMgr.cpp:878
Z2EnvSeBase field_0x2dc
Definition Z2EnvSeMgr.h:169
void resetSceneInner()
Definition Z2EnvSeMgr.cpp:306
Z2EnvSeAutoPan field_0x1c
Definition Z2EnvSeMgr.h:99
void startFarThunderSe(Vec *, s8)
Definition Z2EnvSeMgr.cpp:866
Z2EnvSeBase field_0x110
Definition Z2EnvSeMgr.h:121
void initSmellSe(u8 param_0, u8 param_1, u8 param_2, u8 param_3)
Definition Z2EnvSeMgr.h:94
f32 field_0x218
Definition Z2EnvSeMgr.h:147
Z2EnvSeBase field_0x240
Definition Z2EnvSeMgr.h:151
bool startFogSe()
Definition Z2EnvSeMgr.cpp:1321
Z2Calc::FNoise1f field_0xe0
Definition Z2EnvSeMgr.h:118
f32 field_0x2b4
Definition Z2EnvSeMgr.h:165
f32 field_0x60
Definition Z2EnvSeMgr.h:109
Z2MultiSeMgr mFallSeMgr
Definition Z2EnvSeMgr.h:138
Z2MultiSeMgr field_0x28c
Definition Z2EnvSeMgr.h:162
Z2Calc::FNoise1f field_0xf0
Definition Z2EnvSeMgr.h:119
f32 field_0x1b4
Definition Z2EnvSeMgr.h:136
f32 mFogDensity
Definition Z2EnvSeMgr.h:173
void setWindDirection(Vec *)
Definition Z2EnvSeMgr.cpp:888
void initFallSe(u8, u8, u8, u8)
Definition Z2EnvSeMgr.cpp:1052
f32 field_0x50
Definition Z2EnvSeMgr.h:105
f32 getFogDensity()
Definition Z2EnvSeMgr.cpp:1312
Z2Calc::FNoise1f field_0xd0
Definition Z2EnvSeMgr.h:117
Z2Calc::FNoise1f field_0x130
Definition Z2EnvSeMgr.h:124
f32 field_0x58
Definition Z2EnvSeMgr.h:107
f32 field_0x48
Definition Z2EnvSeMgr.h:103
f32 field_0x54
Definition Z2EnvSeMgr.h:106
u8 field_0x214
Definition Z2EnvSeMgr.h:146
u8 field_0x27c
Definition Z2EnvSeMgr.h:158
f32 field_0x5c
Definition Z2EnvSeMgr.h:108
void registLv3WaterSePos(u8, Vec *)
Definition Z2EnvSeMgr.cpp:1575
Z2Calc::FNoise1f field_0x90
Definition Z2EnvSeMgr.h:113
bool startFogWipeTrigger(Vec *)
Definition Z2EnvSeMgr.cpp:1295
Z2EnvSeBase field_0x2a8
Definition Z2EnvSeMgr.h:163
Z2MultiSeMgr mWolfSmellSeMgr
Definition Z2EnvSeMgr.h:168
Z2Calc::FNoise1f field_0x2e8
Definition Z2EnvSeMgr.h:171
s8 field_0x1b8
Definition Z2EnvSeMgr.h:137
u8 field_0x248
Definition Z2EnvSeMgr.h:152
void setWindType(u8 i_type)
Definition Z2EnvSeMgr.h:91
f32 field_0x1ac
Definition Z2EnvSeMgr.h:134
void setFogWipeWidth(f32)
Definition Z2EnvSeMgr.cpp:1307
void setHyrulSewerOpen(bool)
Definition Z2EnvSeMgr.cpp:960
s8 mSnowPower
Definition Z2EnvSeMgr.h:126
Z2Calc::FNoise1f field_0xb0
Definition Z2EnvSeMgr.h:115
void registFallSePos(Vec *)
Definition Z2EnvSeMgr.cpp:1087
u8 field_0x2e4
Definition Z2EnvSeMgr.h:170
f32 field_0x24c
Definition Z2EnvSeMgr.h:153
Z2MultiSeMgr mEtcSeMgr
Definition Z2EnvSeMgr.h:144
u8 field_0x1e0
Definition Z2EnvSeMgr.h:140
Z2EnvSeBase field_0x118
Definition Z2EnvSeMgr.h:122
f32 field_0x1b0
Definition Z2EnvSeMgr.h:135
u8 mWindType
Definition Z2EnvSeMgr.h:128
Z2Calc::FNoise1f field_0x2f8
Definition Z2EnvSeMgr.h:172
f32 field_0x1e4
Definition Z2EnvSeMgr.h:141
void initEtcSe(u8, u8, u8, u8)
Definition Z2EnvSeMgr.cpp:1126
Z2EnvSeBase field_0x274
Definition Z2EnvSeMgr.h:157
f32 field_0x1ec
Definition Z2EnvSeMgr.h:143
bool startStaticEnvSe(s8)
Definition Z2EnvSeMgr.cpp:565
void playSceneEnvSe()
Definition Z2EnvSeMgr.cpp:412
void initStaticEnvSe(u8, u8, u8, u8, Vec *)
Definition Z2EnvSeMgr.cpp:423
u8 field_0x2b0
Definition Z2EnvSeMgr.h:164
Z2Calc::FNoise1f field_0x19c
Definition Z2EnvSeMgr.h:133
f32 field_0x284
Definition Z2EnvSeMgr.h:160
Z2MultiSeMgr field_0x224
Definition Z2EnvSeMgr.h:150
f32 field_0x288
Definition Z2EnvSeMgr.h:161
Vec field_0x3c
Definition Z2EnvSeMgr.h:102
f32 field_0x21c
Definition Z2EnvSeMgr.h:148
void registWolfSmellSePos(Vec *)
Definition Z2EnvSeMgr.cpp:1290
void initSceneEnvSe(s32, s8, f32)
Definition Z2EnvSeMgr.cpp:359
Definition Z2SeMgr.h:7
signed char s8
Definition types.h:4
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