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 static Z2CreatureLink* getLink() { return mLinkPtr; }
62
63 friend class Z2LinkSoundStarter;
64 friend class Z2RideSoundStarter;
65
66private:
67 /* 0x90 Z2LinkSoundStarter */
69 /* 0xB4 */ Vec field_0xb4;
70 /* 0xC0 */ u8 mLinkState;
71 /* 0xC1 */ u8 field_0xc1;
72 /* 0xC2 */ u8 mMarkState;
73 /* 0xC3 */ u8 mLinkHp;
74 /* 0xC4 */ u8 mLinkBootsType;
75 /* 0xC5 */ u8 mKanteraState;
76 /* 0xC6 */ u8 mLinkSwordType;
77 /* 0xC7 */ u8 mLinkShieldType;
78 /* 0xC8 */ u8 mMoveSpeed;
79 /* 0xC9 */ u8 mMovingTime;
80 /* 0xCA */ s8 mSinkDepth;
81 /* 0xCB */ bool mWolfEyeOpen : 1;
82 /* 0xCB */ bool mInWater : 1;
83 /* 0xCB */ bool mResumeAttack : 1;
84 /* 0xCB */ bool mFlag3 : 1;
85 /* 0xCB */ bool mFlag4 : 1;
86 /* 0xCB */ bool mFlag5 : 1;
87 /* 0xCB */ bool mRiding : 1;
88 /* 0xCB */ bool mMagnetized : 1;
89 /* 0xCC */ bool mFlag8 : 1;
90 /* 0xCC */ bool mUsingIronBall : 1;
91 /* 0xCC */ bool mFlag10 : 1;
92 /* 0xCC */ bool mFlag11 : 1;
93 /* 0xCC */ bool mFlag12 : 1;
94 /* 0xCC */ bool mFlag13 : 1;
95 /* 0xCC */ bool mFlag14 : 1;
96 /* 0xCC */ bool mFlag15 : 1;
97}; // Size: 0xD0
98
101}
102
103class Z2CreatureRide;
106
107 virtual bool startSound(JAISoundID soundID, JAISoundHandle* handle,
108 const JGeometry::TVec3<f32>* posPtr, u32 mapinfo,
109 f32 fxMix, f32 pitch, f32 volume, f32 pan,
110 f32 dolby, u32 moveSteps);
111
113};
114
116public:
119 void init(Vec* animePosPtr, Vec* simplePosPtr, u8 animeHandleNum, u8 simpleHandleNum);
120 void setLinkRiding(bool isRiding);
121
122 bool isLinkRiding() { return mLinkRiding; }
123
124 virtual void deleteObject();
125
126private:
127 /* 0x90 */ // Z2RideSoundStarter mSoundStarter;
128 /* 0x98 */ bool mLinkRiding;
129}; // Size: 0x9C
130
132public:
134 void init(Vec* posPtr, u8 handleNum);
137 Z2SoundHandlePool* startSound(JAISoundID soundID, u32 mapinfo, s8 reverb);
138
139private:
140 /* 0x20 */ f32 field_0x20;
141};
142
143#endif /* Z2LINKMGR_H */
Z2CreatureLink * Z2GetLink()
Definition Z2LinkMgr.h:99
Definition JAISound.h:15
Definition JAISound.h:43
Definition Z2LinkMgr.h:115
virtual void deleteObject()
Definition Z2LinkMgr.cpp:689
bool isLinkRiding()
Definition Z2LinkMgr.h:122
void setLinkRiding(bool isRiding)
Definition Z2LinkMgr.cpp:697
bool mLinkRiding
Definition Z2LinkMgr.h:128
~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:131
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:140
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:75
Definition mtx.h:13
Definition Z2LinkMgr.h:104
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:112
Definition Z2SoundStarter.h:6