Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_event_manager.h
Go to the documentation of this file.
1#ifndef D_EVENT_D_EVENT_MANAGER_H
2#define D_EVENT_D_EVENT_MANAGER_H
3
5#include "d/d_event_data.h"
6
7class fopAc_ac_c;
8
10public:
12 void init();
14 const char* getEventName();
15
16 // private:
17 /* 0x0 */ s32 mEventInfoIdx;
18 /* 0x4 */ u8 field_0x4;
19 /* 0x5 */ u8 field_0x5;
20 /* 0x6 */ u8 field_0x6;
21 /* 0x7 */ u8 field_0x7;
22 /* 0x8 */ s32 mState;
23};
24
25#define EVT_SE_RIDDLE_A 1
26#define EVT_SE_RIDDLE_B 2
27
28class dEvent_manager_c {
29public:
30 void* getSubstance(dEvDtData_c* p_data, int type);
33 int create();
35 void demoInit();
36 void roomInit(int roomNo);
37 void roomFinish(int roomNo);
38 int orderStartDemo();
39 void remove();
42 void endProc(s16 eventID, int close);
43 void Sequencer();
44 void Experts();
47 s16 getEventIdx(char const* eventName, u8 mapToolID, s32 roomNo);
49 s16 getEventIdx(fopAc_ac_c* pActor, char const* eventName, u8 mapToolID);
50 int isMapToolCamera(u8 mapToolID, s32 roomNo);
53 int startCheckOld(char const* name);
55 int endCheckOld(char const* name);
56 int getMyStaffId(char const* staffName, fopAc_ac_c* pActor, int tagId);
58 int getMyActIdx(int staffIdx, char const* const* param_1, int param_2, int param_3,
59 int param_4);
60 char* getMyNowCutName(int cutIndex);
61 dEvDtData_c* getMyDataP(int index, char const* name, int type);
62 void* getMySubstanceP(int index, char const* name, int type);
63 int getMySubstanceNum(int index, char const* name);
64 void cutEnd(int cutIndex);
66 void issueStaff(char const* name);
67 void cancelStaff(char const* name);
69 cXyz* getGoal();
70 const char* getRunEventName();
72 fopAc_ac_c* specialCast(char const* name, int param_1);
74 int checkStartDemo();
75
79 void setFlag(int flag) { mFlags.flagSet(flag); }
80 bool dataLoaded() { return mDataLoaded; }
81 int flagCheck(int flag) { return mFlags.flagCheck(flag); }
82 int cameraPlay() { return mCameraPlay; }
83
84 inline static s16 getIndexCompositId(s16 param_0) { return param_0 != -1 ? (s16)(param_0 & 0xff) : (s16)-1; }
85 static int getTypeCompositId(s16 param_0) { return param_0 == -1 ? 0 : param_0 >> 8; }
86
87 static s16 makeCompositId(s16 a, int b) { return a | (b << 8); }
88
89private:
90 /* 0x0000 */ dEvDtBase_c mEventList[11];
91 /* 0x018C */ s32 mCameraPlay;
93 /* 0x019C */ cXyz mGoal;
94 /* 0x01A8 */ u8 field_0x1a8[2];
96 /* 0x01AC */ u8 field_0x1ac[4];
97 /* 0x01B0 */ int mRoomNo;
98 /* 0x01B4 */ u32 mCurrentEventType;
99 /* 0x01B8 */ s32 field_0x1b8;
100 /* 0x01BC */ dEvDtFlag_c mFlags;
101 /* 0x06BC */ bool mDataLoaded;
102};
103
104#endif /* D_EVENT_D_EVENT_MANAGER_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition d_event_data.h:196
Definition d_event_data.h:26
Definition d_event_data.h:157
Definition d_event_data.h:182
BOOL flagSet(int flag)
Definition d_event_data.cpp:243
BOOL flagCheck(int flag)
Definition d_event_data.cpp:230
Definition d_event_manager.h:9
u8 field_0x7
Definition d_event_manager.h:21
u8 field_0x4
Definition d_event_manager.h:18
u8 field_0x6
Definition d_event_manager.h:20
u8 field_0x5
Definition d_event_manager.h:19
void init()
Definition d_event_manager.cpp:16
const char * getEventName()
Definition d_event_manager.cpp:37
s32 setStartDemo(int mapToolID)
Definition d_event_manager.cpp:22
s32 mState
Definition d_event_manager.h:22
s32 mEventInfoIdx
Definition d_event_manager.h:17
dEvent_exception_c()
Definition d_event_manager.h:11
static volatile BOOL flag
Definition dspproc.cpp:20
static s32 status
Definition fstload.c:6
a
Definition k_cos.c:89
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:85
int flagCheck(int flag)
Definition d_event_manager.h:81
int getEventPrio(fopAc_ac_c *pActor, s16 eventCompositId)
Definition d_event_manager.cpp:917
int order(s16 eventCompositId)
Definition d_event_manager.cpp:633
int cameraPlay()
Definition d_event_manager.h:82
void roomFinish(int roomNo)
Definition d_event_manager.cpp:192
s16 getEventIdx(fopAc_ac_c *pActor, char const *eventName, u8 mapToolID)
void issueStaff(char const *name)
Definition d_event_manager.cpp:941
s32 field_0x1b8
Definition d_event_manager.h:99
int mRoomNo
Definition d_event_manager.h:97
int startCheckOld(char const *name)
Definition d_event_manager.cpp:660
void setFlag(int flag)
Definition d_event_manager.h:79
void setGoal(cXyz *p_goal)
dEvDtBase_c & getBase()
Definition d_event_manager.h:78
u8 field_0x1ac[4]
Definition d_event_manager.h:96
cXyz mGoal
Definition d_event_manager.h:93
dEvDtFlag_c mFlags
Definition d_event_manager.h:100
void Experts()
Definition d_event_manager.cpp:471
void setCameraPlay(int status)
Definition d_event_manager.h:77
dEvDtEvent_c * getEventData(s16 eventCompositId)
void * getMySubstanceP(int index, char const *name, int type)
s16 getEventIdx(char const *eventName, u8 mapToolID, s32 roomNo)
int orderStartDemo()
Definition d_event_manager.cpp:201
cXyz * getGoal()
Definition d_event_manager.cpp:969
void * getSubstance(dEvDtData_c *p_data, int type)
Definition d_event_manager.cpp:86
fopAc_ac_c * specialCast(char const *name, int param_1)
Definition d_event_manager.cpp:1032
int checkStartDemo()
Definition d_event_manager.cpp:1094
int getMyActIdx(int staffIdx, char const *const *param_1, int param_2, int param_3, int param_4)
dEvDtBase_c mEventList[11]
Definition d_event_manager.h:90
static int getTypeCompositId(s16 param_0)
Definition d_event_manager.h:85
dEvDtData_c * getMyDataP(int index, char const *name, int type)
Definition d_event_manager.cpp:850
void cancelStaff(char const *name)
Definition d_event_manager.cpp:953
~dEvent_manager_c()
Definition d_event_manager.h:32
s32 mCameraPlay
Definition d_event_manager.h:91
static s16 makeCompositId(s16 a, int b)
Definition d_event_manager.h:87
void roomInit(int roomNo)
Definition d_event_manager.cpp:164
static s16 getIndexCompositId(s16 param_0)
Definition d_event_manager.h:84
int getMyStaffId(char const *staffName, fopAc_ac_c *pActor, int tagId)
bool dataLoaded()
Definition d_event_manager.h:80
void remove()
Definition d_event_manager.cpp:229
int getMySubstanceNum(int index, char const *name)
Definition d_event_manager.cpp:890
void cutEnd(int cutIndex)
int isMapToolCamera(u8 mapToolID, s32 roomNo)
Definition d_event_manager.cpp:619
void Sequencer()
Definition d_event_manager.cpp:311
int setStartDemo(int param_0)
Definition d_event_manager.h:76
char * getMyNowCutName(int cutIndex)
Definition d_event_manager.cpp:837
fopAc_ac_c * specialCast_Shutter(s16 bsTypeId, int param_1)
Definition d_event_manager.cpp:1012
void getEventData(s16)
Definition d_event_manager.cpp:499
int getIsAddvance(int staffIdx)
void demoInit()
Definition d_event_manager.cpp:152
bool mDataLoaded
Definition d_event_manager.h:101
dEvent_manager_c()
Definition d_event_manager.cpp:104
void endProc(s16 eventID, int close)
Definition d_event_manager.cpp:290
void startProc(dEvDtEvent_c *p_evnt)
Definition d_event_manager.cpp:258
const char * getRunEventName()
Definition d_event_manager.cpp:974
int endCheckOld(char const *name)
u8 field_0x1a8[2]
Definition d_event_manager.h:94
dEvent_exception_c mEventException
Definition d_event_manager.h:92
void closeProc(dEvDtEvent_c *p_evnt)
Definition d_event_manager.cpp:285
int startCheck(s16 eventCompositId)
Definition d_event_manager.cpp:646
u32 mCurrentEventType
Definition d_event_manager.h:98
void getEventIdx(char const *, u8, s32)
Definition d_event_manager.cpp:509
int create()
Definition d_event_manager.cpp:116
bool setObjectArchive(char *arcName)
s16 mCurrentEventCompositId
Definition d_event_manager.h:95
Definition d_a_ep.cpp:19
unsigned long u32
Definition types.h:10
signed short s16
Definition types.h:5
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8