Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JAISeMgr.h
Go to the documentation of this file.
1#ifndef JAISEMGR_H
2#define JAISEMGR_H
3
5#include "global.h"
6
7struct JAIAudience;
8struct JASSoundParams;
9
15 /* 0x0 */ int field_0x0;
16}; // Size: 0x4
17
26
34
35class JAISeMgr;
36
42public:
43 /* 8029F9C4 */ void JAISeMgr_calc_();
44 /* 8029FB30 */ void JAISeMgr_freeDeadSe_();
45 /* 8029FC88 */ bool JAISeMgr_acceptsNewSe_(u32) const;
46 /* 8029FD40 */ void sortByPriority_();
47 /* 8029FDE0 */ void stop(u32);
48 /* 8029FE34 */ void stop();
49 /* 8029FE78 */ void stopSoundID(JAISoundID);
50 /* 8029FEEC */ void pause(bool);
51 /* 8029FF18 */ void JAISeMgr_mixOut_(JAISoundParamsMove const&, JAISoundActivity);
52 /* 802A0994 */ JAISeCategoryMgr();
53
54 /* 800078DC */ virtual ~JAISeCategoryMgr() {}
55 /* 8029F8B0 */ virtual bool isUsingSeqData(JAISeqDataRegion const&);
56 /* 8029F91C */ virtual int releaseSeqData(JAISeqDataRegion const&);
57
59 int getMaxSe() const {
60 return (mMaxActiveSe == 0) ? 0 : mMaxActiveSe + mMaxInactiveSe;
61 }
62 int getMaxActiveSe() const { return mMaxActiveSe; }
66 int getNumSe() const { return mSeList.getNumLinks(); }
69
73 /* 0x64 */ int mMaxInactiveSe;
74 /* 0x68 */ int mMaxActiveSe;
75}; // Size: 0x6C
76
81class JAISeMgr : public JASGlobalInstance<JAISeMgr>,
82 public JAISeqDataUser,
83 public JAISoundActivity {
84public:
85 /* 802A0074 */ JAISeMgr(bool);
86 /* 802A0268 */ void setCategoryArrangement(JAISeCategoryArrangement const&);
87 /* 802A02A0 */ void stop();
88 /* 802A02F4 */ void stopSoundID(JAISoundID);
89 /* 802A0358 */ void initParams();
90 /* 802A03D8 */ void setAudience(JAIAudience*);
91 /* 802A03E0 */ void setSeqDataMgr(JAISeqDataMgr*);
92 /* 802A0434 */ void resetSeqDataMgr();
93 /* 802A0484 */ JAISe* newSe_(int, u32);
94 /* 802A0574 */ void calc();
95 /* 802A0704 */ void mixOut();
96 /* 802A0768 */ bool startSound(JAISoundID, JAISoundHandle*, JGeometry::TVec3<f32> const*);
97 /* 802A08D0 */ int getNumActiveSe() const;
98
99 /* 802A08FC */ virtual ~JAISeMgr() {}
100 /* 802A0168 */ virtual bool isUsingSeqData(JAISeqDataRegion const&);
101 /* 802A01D8 */ virtual int releaseSeqData(JAISeqDataRegion const&);
102
105 if (categoryIndex >= 0 && categoryIndex < 16) {
107 if (rv) return rv;
108 }
109 return mAudience;
110 }
113
114private:
115 /* 0x008 */ JAIAudience* mAudience;
120}; // Size: 0x724
121
122STATIC_ASSERT(sizeof(JAISeMgr) == 0x724);
123
124#endif /* JAISEMGR_H */
STATIC_ASSERT(sizeof(JAISeMgr)==0x724)
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JAISeMgr.h:41
void pause(bool)
Definition JAISeMgr.cpp:137
virtual ~JAISeCategoryMgr()
Definition JAISeMgr.h:54
virtual int releaseSeqData(JAISeqDataRegion const &)
Definition JAISeMgr.cpp:28
void sortByPriority_()
Definition JAISeMgr.cpp:92
int getMaxSe() const
Definition JAISeMgr.h:59
int getNumSe() const
Definition JAISeMgr.h:66
JSUList< JAISe > mSeList
Definition JAISeMgr.h:72
void stopSoundID(JAISoundID)
Definition JAISeMgr.cpp:126
JAISeCategoryMgr()
Definition JAISeMgr.cpp:342
void JAISeMgr_appendSe_(JAISe *se)
Definition JAISeMgr.h:68
int mMaxInactiveSe
Definition JAISeMgr.h:73
void stop()
Definition JAISeMgr.cpp:118
JAISoundParamsMove mParams
Definition JAISeMgr.h:71
JAIAudience * getAudience()
Definition JAISeMgr.h:67
JAISoundParamsMove * getParams()
Definition JAISeMgr.h:58
int getMaxActiveSe() const
Definition JAISeMgr.h:62
int mMaxActiveSe
Definition JAISeMgr.h:74
void setMaxInactiveSe(int se)
Definition JAISeMgr.h:64
JASNonCopyable field_0x4
Definition JAISeMgr.h:70
virtual bool isUsingSeqData(JAISeqDataRegion const &)
Definition JAISeMgr.cpp:13
void JAISeMgr_freeDeadSe_()
Definition JAISeMgr.cpp:59
JSUList< JAISe > * getSeList()
Definition JAISeMgr.h:65
void JAISeMgr_calc_()
Definition JAISeMgr.cpp:47
void setMaxActiveSe(int se)
Definition JAISeMgr.h:63
void JAISeMgr_mixOut_(JAISoundParamsMove const &, JAISoundActivity)
Definition JAISeMgr.cpp:145
bool JAISeMgr_acceptsNewSe_(u32) const
Definition JAISeMgr.cpp:73
Definition JAISeMgr.h:83
void mixOut()
Definition JAISeMgr.cpp:292
void setSeqDataMgr(JAISeqDataMgr *)
Definition JAISeMgr.cpp:246
void setCategoryArrangement(JAISeCategoryArrangement const &)
Definition JAISeMgr.cpp:210
JAISeCategoryMgr mCategoryMgrs[16]
Definition JAISeMgr.h:118
virtual ~JAISeMgr()
Definition JAISeMgr.h:99
JAISe * newSe_(int, u32)
Definition JAISeMgr.cpp:262
JAISoundStrategyMgr< JAISe > * mStrategyMgr
Definition JAISeMgr.h:117
virtual int releaseSeqData(JAISeqDataRegion const &)
Definition JAISeMgr.cpp:194
void setAudience(JAIAudience *)
Definition JAISeMgr.cpp:241
bool startSound(JAISoundID, JAISoundHandle *, JGeometry::TVec3< f32 > const *)
Definition JAISeMgr.cpp:300
JAIAudience * mAudience
Definition JAISeMgr.h:115
void stopSoundID(JAISoundID)
Definition JAISeMgr.cpp:226
virtual bool isUsingSeqData(JAISeqDataRegion const &)
Definition JAISeMgr.cpp:183
JAISeCategoryMgr * getCategory(int categoryIndex)
Definition JAISeMgr.h:103
int getNumActiveSe() const
Definition JAISeMgr.cpp:333
JAISoundParamsMove mParams
Definition JAISeMgr.h:119
void calc()
Definition JAISeMgr.cpp:281
JAISeqDataMgr * mSeqDataMgr
Definition JAISeMgr.h:116
JAISoundParamsMove * getParams()
Definition JAISeMgr.h:112
void resetSeqDataMgr()
Definition JAISeMgr.cpp:253
void stop()
Definition JAISeMgr.cpp:218
JAISeqDataMgr * getSeqDataMgr()
Definition JAISeMgr.h:111
JAIAudience * getAudience(int categoryIndex)
Definition JAISeMgr.h:104
void initParams()
Definition JAISeMgr.cpp:233
Definition JAISe.h:13
Definition JAISound.h:183
Definition JAISoundHandles.h:14
Definition JASGadget.h:12
Definition JSUList.h:96
bool append(JSULink< T > *link)
Definition JSUList.h:103
u32 getNumLinks() const
Definition JSUList.h:121
Definition JAIAudience.h:14
Definition JAISeMgr.h:22
u8 mMaxActiveSe
Definition JAISeMgr.h:23
u8 mMaxInactiveSe
Definition JAISeMgr.h:24
Definition JAISeMgr.h:31
JAISeCategoryArrangementItem mItems[16]
Definition JAISeMgr.h:32
Definition JAISeqDataMgr.h:58
Definition JAISeqDataMgr.h:29
Definition JAISeqDataMgr.h:48
Definition d_a_obj_sekizoa.cpp:447
Definition JAISoundParams.h:85
Definition JAISound.h:167
Definition JAISeMgr.h:14
int field_0x0
Definition JAISeMgr.h:15
Definition JASSoundParams.h:10
Definition JGeometry.h:55
unsigned long u32
Definition types.h:10
unsigned char u8
Definition types.h:8