Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2LinkMgr.h
Go to the documentation of this file.
1#ifndef Z2LINKMGR_H
2#define Z2LINKMGR_H
3
6
8public:
10
11 inline virtual ~Z2LinkSoundStarter();
12 virtual bool startSound(JAISoundID soundID, JAISoundHandle* handle,
13 const JGeometry::TVec3<f32>* posPtr, u32 mapinfo,
14 f32 fxMix, f32 pitch, f32 volume, f32 pan,
15 f32 dolby, u32 moveSteps);
16};
17
19public:
22
23 void setLinkGroupInfo(u8);
24 void setLinkHp(s32 linkHp, s32);
25 void setLinkSwordType(s32 swordType, s32);
26 void setLinkShieldType(s32 shieldType, s32);
27 void setLinkBootsType(s32 bootsType);
28 virtual void deleteObject();
29 void init(Vec* animePosPtr, Vec* simplePosPtr, Vec* simple2PosPtr);
30 void initKantera(Vec* posPtr);
31 void deleteKantera();
32 void setKanteraState(u8 state);
33 virtual void framework(u32 mapinfo, s8 reverb);
34 void setSinkDepth(s8 sinkDepth);
35 void setRiding(bool isRiding);
36 void setMagnetized(bool isMagnetized);
37 void setWolfEyeOpen(bool wolfEyeOpen);
42 void startLinkSwordSound(JAISoundID, u32 mapinfo, s8 reverb);
43 virtual Z2SoundHandlePool* startCollisionSE(u32 hitID, u32 mapinfo);
44 Z2SoundHandlePool* startHitItemSE(u32 soundID, u32 mapinfo, Z2SoundObjBase* other, f32 speed);
45 void setResumeAttack(bool resumeAttack);
46
47 void setInWater(bool inWater) { mInWater = inWater; }
48 bool isInWater() { return mInWater; }
51 bool isRiding() { return mRiding; }
52 void setLinkState(u8 state) { mLinkState = state; }
54 u8 getLinkHp() { return mLinkHp; }
56 bool isWolfSmellOpen() { return mWolfEyeOpen; }
57 void setUsingIronBall(bool isUsingIronBall) { mUsingIronBall = isUsingIronBall; }
58 void setMarkState(u8 state) { mMarkState = state; }
59
61
62 friend class Z2LinkSoundStarter;
63 friend class Z2RideSoundStarter;
64
65private:
66 /* 0x90 Z2LinkSoundStarter */
68 /* 0xB4 */ Vec field_0xb4;
69 /* 0xC0 */ u8 mLinkState;
70 /* 0xC1 */ u8 field_0xc1;
71 /* 0xC2 */ u8 mMarkState;
72 /* 0xC3 */ u8 mLinkHp;
73 /* 0xC4 */ u8 mLinkBootsType;
74 /* 0xC5 */ u8 mKanteraState;
75 /* 0xC6 */ u8 mLinkSwordType;
76 /* 0xC7 */ u8 mLinkShieldType;
77 /* 0xC8 */ u8 mMoveSpeed;
78 /* 0xC9 */ u8 mMovingTime;
79 /* 0xCA */ s8 mSinkDepth;
80 /* 0xCB */ bool mWolfEyeOpen : 1;
81 /* 0xCB */ bool mInWater : 1;
82 /* 0xCB */ bool mResumeAttack : 1;
83 /* 0xCB */ bool mFlag3 : 1;
84 /* 0xCB */ bool mFlag4 : 1;
85 /* 0xCB */ bool mFlag5 : 1;
86 /* 0xCB */ bool mRiding : 1;
87 /* 0xCB */ bool mMagnetized : 1;
88 /* 0xCC */ bool mFlag8 : 1;
89 /* 0xCC */ bool mUsingIronBall : 1;
90 /* 0xCC */ bool mFlag10 : 1;
91 /* 0xCC */ bool mFlag11 : 1;
92 /* 0xCC */ bool mFlag12 : 1;
93 /* 0xCC */ bool mFlag13 : 1;
94 /* 0xCC */ bool mFlag14 : 1;
95 /* 0xCC */ bool mFlag15 : 1;
96}; // Size: 0xD0
97
101
102class Z2CreatureRide;
105
106 virtual bool startSound(JAISoundID soundID, JAISoundHandle* handle,
107 const JGeometry::TVec3<f32>* posPtr, u32 mapinfo,
108 f32 fxMix, f32 pitch, f32 volume, f32 pan,
109 f32 dolby, u32 moveSteps);
110
112};
113
115public:
118 void init(Vec* animePosPtr, Vec* simplePosPtr, u8 animeHandleNum, u8 simpleHandleNum);
119 void setLinkRiding(bool isRiding);
120
121 bool isLinkRiding() { return mLinkRiding; }
122
123 virtual void deleteObject();
124
125private:
126 /* 0x90 */ // Z2RideSoundStarter mSoundStarter;
127 /* 0x98 */ bool mLinkRiding;
128}; // Size: 0x9C
129
131public:
133 void init(Vec* posPtr, u8 handleNum);
136 Z2SoundHandlePool* startSound(JAISoundID soundID, u32 mapinfo, s8 reverb);
137
138private:
139 /* 0x20 */ f32 field_0x20;
140};
141
142#endif /* Z2LINKMGR_H */
Z2CreatureLink * Z2GetLink()
Definition Z2LinkMgr.h:98
Definition JAISoundHandles.h:14
Definition JAISound.h:13
Definition Z2LinkMgr.h:114
virtual void deleteObject()
Definition Z2LinkMgr.cpp:689
bool isLinkRiding()
Definition Z2LinkMgr.h:121
void setLinkRiding(bool isRiding)
Definition Z2LinkMgr.cpp:697
bool mLinkRiding
Definition Z2LinkMgr.h:127
~Z2CreatureRide()
Definition Z2LinkMgr.cpp:685
Z2CreatureRide()
Definition Z2LinkMgr.cpp:679
Definition Z2Creature.h:7
Definition Z2LinkMgr.h:7
virtual bool startSound(JAISoundID soundID, JAISoundHandle *handle, const JGeometry::TVec3< f32 > *posPtr, u32 mapinfo, f32 fxMix, f32 pitch, f32 volume, f32 pan, f32 dolby, u32 moveSteps)
Definition Z2LinkMgr.cpp:530
Z2LinkSoundStarter()
Definition Z2LinkMgr.cpp:528
virtual ~Z2LinkSoundStarter()
Definition Z2LinkMgr.cpp:78
Definition Z2SoundHandles.h:7
Definition Z2SoundObject.h:13
Definition Z2LinkMgr.h:130
Z2SoundHandlePool * startSound(JAISoundID soundID, u32 mapinfo, s8 reverb)
Definition Z2LinkMgr.cpp:814
Z2SoundHandlePool * startFireSound(u16)
Definition Z2LinkMgr.cpp:799
Z2SoundObjCoach()
Definition Z2LinkMgr.cpp:760
f32 field_0x20
Definition Z2LinkMgr.h:139
Z2SoundHandlePool * startWheelSound(f32)
Definition Z2LinkMgr.cpp:768
Definition Z2SoundObject.h:38
static initFunc init[]
Definition d_menu_collect.cpp:39
signed char s8
Definition types.h:7
unsigned long u32
Definition types.h:12
float f32
Definition types.h:25
unsigned short int u16
Definition types.h:10
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
Definition JGeometry.h:70
Definition mtx.h:13
Definition Z2LinkMgr.h:103
virtual bool startSound(JAISoundID soundID, JAISoundHandle *handle, const JGeometry::TVec3< f32 > *posPtr, u32 mapinfo, f32 fxMix, f32 pitch, f32 volume, f32 pan, f32 dolby, u32 moveSteps)
Definition Z2LinkMgr.cpp:706
Z2RideSoundStarter(Z2CreatureRide *ride)
Definition Z2LinkMgr.cpp:701
Z2CreatureRide * mRide
Definition Z2LinkMgr.h:111
Definition Z2SoundStarter.h:6