Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2SoundObjMgr.h
Go to the documentation of this file.
1#ifndef Z2SOUNDOBJMGR_H
2#define Z2SOUNDOBJMGR_H
3
7#include "global.h"
8
10
12 /* 0x00 */ bool field_0x0;
13 /* 0x02 */ u16 field_0x2;
14 /* 0x04 */ u16 field_0x4;
15 /* 0x06 */ u16 field_0x6;
16};
17
19 /* 0x00 */ Z2_ENEMY_NULL,
20 /* 0x01 */ Z2_ENEMY_S1,
21 /* 0x02 */ Z2_ENEMY_YK,
22 /* 0x03 */ Z2_ENEMY_YR,
23 /* 0x04 */ Z2_ENEMY_YG,
24 /* 0x05 */ Z2_ENEMY_YC,
25 /* 0x06 */ Z2_ENEMY_YD,
26 /* 0x07 */ Z2_ENEMY_RDY,
27 /* 0x08 */ Z2_ENEMY_YMB,
28 /* 0x09 */ Z2_ENEMY_UNK,
29 /* 0x0A */ Z2_ENEMY_WB,
30 /* 0x0B */ Z2_ENEMY_RD,
31 /* 0x0C */ Z2_ENEMY_DN,
32 /* 0x0D */ Z2_ENEMY_KR,
33 /* 0x0E */ Z2_ENEMY_ST,
34 /* 0x0F */ Z2_ENEMY_TK,
35 /* 0x10 */ Z2_ENEMY_TK2,
36 /* 0x11 */ Z2_ENEMY_CR,
37 /* 0x12 */ Z2_ENEMY_DF,
38 /* 0x13 */ Z2_ENEMY_FS,
39 /* 0x14 */ Z2_ENEMY_SB,
40 /* 0x15 */ Z2_ENEMY_PM,
41 /* 0x16 */ Z2_ENEMY_DB,
42 /* 0x17 */ Z2_ENEMY_KG,
43 /* 0x18 */ Z2_ENEMY_SH,
44 /* 0x19 */ Z2_ENEMY_SF,
45 /* 0x1A */ Z2_ENEMY_BS,
46 /* 0x1B */ Z2_ENEMY_SM,
47 /* 0x1C */ Z2_ENEMY_BA,
48 /* 0x1D */ Z2_ENEMY_BU,
49 /* 0x1E */ Z2_ENEMY_HM,
50 /* 0x1F */ Z2_ENEMY_GE,
51 /* 0x20 */ Z2_ENEMY_HZ,
52 /* 0x21 */ Z2_ENEMY_WS,
53 /* 0x22 */ Z2_ENEMY_OC,
54 /* 0x23 */ Z2_ENEMY_FZ,
55 /* 0x24 */ Z2_ENEMY_FB,
56 /* 0x25 */ Z2_ENEMY_BG,
57 /* 0x26 */ Z2_ENEMY_MM,
58 /* 0x27 */ Z2_ENEMY_NZ,
59 /* 0x28 */ Z2_ENEMY_PO,
60 /* 0x29 */ Z2_ENEMY_RB,
61 /* 0x2A */ Z2_ENEMY_SG,
62 /* 0x2B */ Z2_ENEMY_HB,
63 /* 0x2C */ Z2_ENEMY_GB,
64 /* 0x2D */ Z2_ENEMY_MS,
65 /* 0x2E */ Z2_ENEMY_DD,
66 /* 0x2F */ Z2_ENEMY_BI,
67 /* 0x30 */ Z2_ENEMY_TT,
68 /* 0x31 */ Z2_ENEMY_AI,
69 /* 0x32 */ Z2_ENEMY_DK,
70 /* 0x33 */ Z2_ENEMY_WW,
71 /* 0x34 */ Z2_ENEMY_GI,
72 /* 0x35 */ Z2_ENEMY_SM2,
73 /* 0x36 */ Z2_ENEMY_SW,
74 /* 0x37 */ Z2_ENEMY_RDB,
75 /* 0x38 */ Z2_ENEMY_KK,
76 /* 0x39 */ Z2_ENEMY_HP,
77 /* 0x3A */ Z2_ENEMY_ZH,
78 /* 0x3B */ Z2_ENEMY_GM,
79 /* 0x3C */ Z2_ENEMY_GG,
80 /* 0x3D */ Z2_ENEMY_MF,
81 /* 0x3E */ Z2_ENEMY_ZM,
82 /* 0x3F */ Z2_ENEMY_TN,
83};
84
85class Z2SoundObjMgr : public JASGlobalInstance<Z2SoundObjMgr>, protected JSUList<Z2CreatureEnemy> {
86public:
88 void setForceBattleArea(bool forceBattle, u16, u16, u16);
89 void searchEnemy();
90 void setGhostEnemyState(u8 state);
91 u8 getEnemyID(const char* enemyName, JSULink<Z2CreatureEnemy>* enemyLink);
92 void setBattleInit();
93 bool checkBattleFinish();
94 void deleteEnemyAll();
97
98 u8 getEnemyNumNear() const { return enemuNumNear_; }
100 bool isForceBattle() { return forceBattle_; }
102
103 #if DEBUG
105 #endif
106
107private:
108 #if DEBUG
110 #endif
112 /* 0x14 */ u8 field_0x14;
113 /* 0x15 */ u8 enemuNumNear_;
114 /* 0x16 */ u8 field_0x16;
116 /* 0x18 */ u8 field_0x18;
118 /* 0x1A */ u8 field_0x1a;
119 /* 0x1B */ u8 twilightBattle_;
120 /* 0x1C */ bool forceBattle_;
121}; // Size = 0x20
122
126
127#endif /* Z2SOUNDOBJMGR_H */
Z2SoundObjMgr * Z2GetSoundObjMgr()
Definition Z2SoundObjMgr.h:123
Z2EnemyID
Definition Z2SoundObjMgr.h:18
@ Z2_ENEMY_YR
Definition Z2SoundObjMgr.h:22
@ Z2_ENEMY_BS
Definition Z2SoundObjMgr.h:45
@ Z2_ENEMY_DB
Definition Z2SoundObjMgr.h:41
@ Z2_ENEMY_AI
Definition Z2SoundObjMgr.h:68
@ Z2_ENEMY_NULL
Definition Z2SoundObjMgr.h:19
@ Z2_ENEMY_MM
Definition Z2SoundObjMgr.h:57
@ Z2_ENEMY_GB
Definition Z2SoundObjMgr.h:63
@ Z2_ENEMY_ZM
Definition Z2SoundObjMgr.h:81
@ Z2_ENEMY_SM
Definition Z2SoundObjMgr.h:46
@ Z2_ENEMY_KR
Definition Z2SoundObjMgr.h:32
@ Z2_ENEMY_FB
Definition Z2SoundObjMgr.h:55
@ Z2_ENEMY_SG
Definition Z2SoundObjMgr.h:61
@ Z2_ENEMY_FS
Definition Z2SoundObjMgr.h:38
@ Z2_ENEMY_PO
Definition Z2SoundObjMgr.h:59
@ Z2_ENEMY_SW
Definition Z2SoundObjMgr.h:73
@ Z2_ENEMY_HB
Definition Z2SoundObjMgr.h:62
@ Z2_ENEMY_ST
Definition Z2SoundObjMgr.h:33
@ Z2_ENEMY_MS
Definition Z2SoundObjMgr.h:64
@ Z2_ENEMY_WS
Definition Z2SoundObjMgr.h:52
@ Z2_ENEMY_GI
Definition Z2SoundObjMgr.h:71
@ Z2_ENEMY_GM
Definition Z2SoundObjMgr.h:78
@ Z2_ENEMY_DN
Definition Z2SoundObjMgr.h:31
@ Z2_ENEMY_HP
Definition Z2SoundObjMgr.h:76
@ Z2_ENEMY_KG
Definition Z2SoundObjMgr.h:42
@ Z2_ENEMY_RD
Definition Z2SoundObjMgr.h:30
@ Z2_ENEMY_MF
Definition Z2SoundObjMgr.h:80
@ Z2_ENEMY_BI
Definition Z2SoundObjMgr.h:66
@ Z2_ENEMY_UNK
Definition Z2SoundObjMgr.h:28
@ Z2_ENEMY_SM2
Definition Z2SoundObjMgr.h:72
@ Z2_ENEMY_YC
Definition Z2SoundObjMgr.h:24
@ Z2_ENEMY_YD
Definition Z2SoundObjMgr.h:25
@ Z2_ENEMY_HZ
Definition Z2SoundObjMgr.h:51
@ Z2_ENEMY_GE
Definition Z2SoundObjMgr.h:50
@ Z2_ENEMY_OC
Definition Z2SoundObjMgr.h:53
@ Z2_ENEMY_S1
Definition Z2SoundObjMgr.h:20
@ Z2_ENEMY_SF
Definition Z2SoundObjMgr.h:44
@ Z2_ENEMY_FZ
Definition Z2SoundObjMgr.h:54
@ Z2_ENEMY_YMB
Definition Z2SoundObjMgr.h:27
@ Z2_ENEMY_RDB
Definition Z2SoundObjMgr.h:74
@ Z2_ENEMY_YK
Definition Z2SoundObjMgr.h:21
@ Z2_ENEMY_TK2
Definition Z2SoundObjMgr.h:35
@ Z2_ENEMY_SH
Definition Z2SoundObjMgr.h:43
@ Z2_ENEMY_DD
Definition Z2SoundObjMgr.h:65
@ Z2_ENEMY_GG
Definition Z2SoundObjMgr.h:79
@ Z2_ENEMY_DF
Definition Z2SoundObjMgr.h:37
@ Z2_ENEMY_TT
Definition Z2SoundObjMgr.h:67
@ Z2_ENEMY_HM
Definition Z2SoundObjMgr.h:49
@ Z2_ENEMY_ZH
Definition Z2SoundObjMgr.h:77
@ Z2_ENEMY_YG
Definition Z2SoundObjMgr.h:23
@ Z2_ENEMY_RDY
Definition Z2SoundObjMgr.h:26
@ Z2_ENEMY_WB
Definition Z2SoundObjMgr.h:29
@ Z2_ENEMY_SB
Definition Z2SoundObjMgr.h:39
@ Z2_ENEMY_WW
Definition Z2SoundObjMgr.h:70
@ Z2_ENEMY_CR
Definition Z2SoundObjMgr.h:36
@ Z2_ENEMY_PM
Definition Z2SoundObjMgr.h:40
@ Z2_ENEMY_KK
Definition Z2SoundObjMgr.h:75
@ Z2_ENEMY_BG
Definition Z2SoundObjMgr.h:56
@ Z2_ENEMY_BU
Definition Z2SoundObjMgr.h:48
@ Z2_ENEMY_TK
Definition Z2SoundObjMgr.h:34
@ Z2_ENEMY_NZ
Definition Z2SoundObjMgr.h:58
@ Z2_ENEMY_TN
Definition Z2SoundObjMgr.h:82
@ Z2_ENEMY_BA
Definition Z2SoundObjMgr.h:47
@ Z2_ENEMY_DK
Definition Z2SoundObjMgr.h:69
@ Z2_ENEMY_RB
Definition Z2SoundObjMgr.h:60
Definition JASGadget.h:12
static T * getInstance()
Definition JASGadget.h:31
Definition JSUList.h:96
Definition Z2Creature.h:37
Definition Z2SoundObjMgr.h:85
void searchEnemy()
Definition Z2SoundObjMgr.cpp:106
Z2SoundObjMgr()
Definition Z2SoundObjMgr.cpp:8
u8 ghostEnemyState_
Definition Z2SoundObjMgr.h:117
void setBattleInit()
Definition Z2SoundObjMgr.cpp:361
u8 field_0x18
Definition Z2SoundObjMgr.h:116
u8 enemuNumNear_
Definition Z2SoundObjMgr.h:113
bool removeEnemy(JSULink< Z2CreatureEnemy > *enemyLink)
Definition Z2SoundObjMgr.cpp:392
JSUList< Z2CreatureEnemy > * getEnemyList()
Definition Z2SoundObjMgr.h:101
void deleteEnemyAll()
Definition Z2SoundObjMgr.cpp:378
bool checkBattleFinish()
Definition Z2SoundObjMgr.cpp:370
Z2EnemyArea enemyArea_
Definition Z2SoundObjMgr.h:111
void setGhostEnemyState(u8 state)
Definition Z2SoundObjMgr.cpp:333
u8 twilightBattle_
Definition Z2SoundObjMgr.h:119
u8 field_0x14
Definition Z2SoundObjMgr.h:112
u8 getEnemyNumNear() const
Definition Z2SoundObjMgr.h:98
void setForceBattleArea(bool forceBattle, u16, u16, u16)
Definition Z2SoundObjMgr.cpp:15
bool isForceBattle()
Definition Z2SoundObjMgr.h:100
u8 isTwilightBattle()
Definition Z2SoundObjMgr.cpp:406
u8 field_0x16
Definition Z2SoundObjMgr.h:114
u8 field_0x1a
Definition Z2SoundObjMgr.h:118
JSUList< Z2SoundObjBase > * getAllList()
Definition Z2SoundObjMgr.h:104
u8 getEnemyNumVeryFar()
Definition Z2SoundObjMgr.h:99
u8 enemuNumVeryFar_
Definition Z2SoundObjMgr.h:115
bool forceBattle_
Definition Z2SoundObjMgr.h:120
JSUList< Z2SoundObjBase > allList_
Definition Z2SoundObjMgr.h:109
u8 getEnemyID(const char *enemyName, JSULink< Z2CreatureEnemy > *enemyLink)
Definition Z2SoundObjMgr.cpp:348
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
Definition Z2SoundObjMgr.h:11
bool field_0x0
Definition Z2SoundObjMgr.h:12
u16 field_0x2
Definition Z2SoundObjMgr.h:13
u16 field_0x4
Definition Z2SoundObjMgr.h:14
u16 field_0x6
Definition Z2SoundObjMgr.h:15