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
6
8
9struct Z2EnemyArea {
10 /* 0x00 */ bool field_0x0;
11 /* 0x02 */ u16 field_0x2;
12 /* 0x04 */ u16 field_0x4;
13 /* 0x06 */ u16 field_0x6;
14};
15
17 /* 0x00 */ Z2_ENEMY_NULL,
18 /* 0x01 */ Z2_ENEMY_S1,
19 /* 0x02 */ Z2_ENEMY_YK,
20 /* 0x03 */ Z2_ENEMY_YR,
21 /* 0x04 */ Z2_ENEMY_YG,
22 /* 0x05 */ Z2_ENEMY_YC,
23 /* 0x06 */ Z2_ENEMY_YD,
24 /* 0x07 */ Z2_ENEMY_RDY,
25 /* 0x08 */ Z2_ENEMY_YMB,
26 /* 0x09 */ Z2_ENEMY_UNK,
27 /* 0x0A */ Z2_ENEMY_WB,
28 /* 0x0B */ Z2_ENEMY_RD,
29 /* 0x0C */ Z2_ENEMY_DN,
30 /* 0x0D */ Z2_ENEMY_KR,
31 /* 0x0E */ Z2_ENEMY_ST,
32 /* 0x0F */ Z2_ENEMY_TK,
33 /* 0x10 */ Z2_ENEMY_TK2,
34 /* 0x11 */ Z2_ENEMY_CR,
35 /* 0x12 */ Z2_ENEMY_DF,
36 /* 0x13 */ Z2_ENEMY_FS,
37 /* 0x14 */ Z2_ENEMY_SB,
38 /* 0x15 */ Z2_ENEMY_PM,
39 /* 0x16 */ Z2_ENEMY_DB,
40 /* 0x17 */ Z2_ENEMY_KG,
41 /* 0x18 */ Z2_ENEMY_SH,
42 /* 0x19 */ Z2_ENEMY_SF,
43 /* 0x1A */ Z2_ENEMY_BS,
44 /* 0x1B */ Z2_ENEMY_SM,
45 /* 0x1C */ Z2_ENEMY_BA,
46 /* 0x1D */ Z2_ENEMY_BU,
47 /* 0x1E */ Z2_ENEMY_HM,
48 /* 0x1F */ Z2_ENEMY_GE,
49 /* 0x20 */ Z2_ENEMY_HZ,
50 /* 0x21 */ Z2_ENEMY_WS,
51 /* 0x22 */ Z2_ENEMY_OC,
52 /* 0x23 */ Z2_ENEMY_FZ,
53 /* 0x24 */ Z2_ENEMY_FB,
54 /* 0x25 */ Z2_ENEMY_BG,
55 /* 0x26 */ Z2_ENEMY_MM,
56 /* 0x27 */ Z2_ENEMY_NZ,
57 /* 0x28 */ Z2_ENEMY_PO,
58 /* 0x29 */ Z2_ENEMY_RB,
59 /* 0x2A */ Z2_ENEMY_SG,
60 /* 0x2B */ Z2_ENEMY_HB,
61 /* 0x2C */ Z2_ENEMY_GB,
62 /* 0x2D */ Z2_ENEMY_MS,
63 /* 0x2E */ Z2_ENEMY_DD,
64 /* 0x2F */ Z2_ENEMY_BI,
65 /* 0x30 */ Z2_ENEMY_TT,
66 /* 0x31 */ Z2_ENEMY_AI,
67 /* 0x32 */ Z2_ENEMY_DK,
68 /* 0x33 */ Z2_ENEMY_WW,
69 /* 0x34 */ Z2_ENEMY_GI,
70 /* 0x35 */ Z2_ENEMY_SM2,
71 /* 0x36 */ Z2_ENEMY_SW,
72 /* 0x37 */ Z2_ENEMY_RDB,
73 /* 0x38 */ Z2_ENEMY_KK,
74 /* 0x39 */ Z2_ENEMY_HP,
75 /* 0x3A */ Z2_ENEMY_ZH,
76 /* 0x3B */ Z2_ENEMY_GM,
77 /* 0x3C */ Z2_ENEMY_GG,
78 /* 0x3D */ Z2_ENEMY_MF,
79 /* 0x3E */ Z2_ENEMY_ZM,
80 /* 0x3F */ Z2_ENEMY_TN,
81};
82
83class Z2SoundObjMgr : public JASGlobalInstance<Z2SoundObjMgr>, protected JSUList<Z2CreatureEnemy> {
84public:
86 void setForceBattleArea(bool, u16, u16, u16);
87 void searchEnemy();
90 void setBattleInit();
91 bool checkBattleFinish();
92 void deleteEnemyAll();
95
97 bool isForceBattle() { return mForceBattle; }
99
100private:
102 /* 0x14 */ u8 field_0x14;
103 /* 0x15 */ u8 mEnemyNumNear;
104 /* 0x16 */ u8 field_0x16;
106 /* 0x18 */ u8 field_0x18;
108 /* 0x1A */ u8 field_0x1a;
109 /* 0x1B */ u8 mTwilightBattle;
110 /* 0x1C */ bool mForceBattle;
111}; // Size = 0x20
112
116
117#endif /* Z2SOUNDOBJMGR_H */
Z2SoundObjMgr * Z2GetSoundObjMgr()
Definition Z2SoundObjMgr.h:113
Z2EnemyID
Definition Z2SoundObjMgr.h:16
@ Z2_ENEMY_YR
Definition Z2SoundObjMgr.h:20
@ Z2_ENEMY_BS
Definition Z2SoundObjMgr.h:43
@ Z2_ENEMY_DB
Definition Z2SoundObjMgr.h:39
@ Z2_ENEMY_AI
Definition Z2SoundObjMgr.h:66
@ Z2_ENEMY_NULL
Definition Z2SoundObjMgr.h:17
@ Z2_ENEMY_MM
Definition Z2SoundObjMgr.h:55
@ Z2_ENEMY_GB
Definition Z2SoundObjMgr.h:61
@ Z2_ENEMY_ZM
Definition Z2SoundObjMgr.h:79
@ Z2_ENEMY_SM
Definition Z2SoundObjMgr.h:44
@ Z2_ENEMY_KR
Definition Z2SoundObjMgr.h:30
@ Z2_ENEMY_FB
Definition Z2SoundObjMgr.h:53
@ Z2_ENEMY_SG
Definition Z2SoundObjMgr.h:59
@ Z2_ENEMY_FS
Definition Z2SoundObjMgr.h:36
@ Z2_ENEMY_PO
Definition Z2SoundObjMgr.h:57
@ Z2_ENEMY_SW
Definition Z2SoundObjMgr.h:71
@ Z2_ENEMY_HB
Definition Z2SoundObjMgr.h:60
@ Z2_ENEMY_ST
Definition Z2SoundObjMgr.h:31
@ Z2_ENEMY_MS
Definition Z2SoundObjMgr.h:62
@ Z2_ENEMY_WS
Definition Z2SoundObjMgr.h:50
@ Z2_ENEMY_GI
Definition Z2SoundObjMgr.h:69
@ Z2_ENEMY_GM
Definition Z2SoundObjMgr.h:76
@ Z2_ENEMY_DN
Definition Z2SoundObjMgr.h:29
@ Z2_ENEMY_HP
Definition Z2SoundObjMgr.h:74
@ Z2_ENEMY_KG
Definition Z2SoundObjMgr.h:40
@ Z2_ENEMY_RD
Definition Z2SoundObjMgr.h:28
@ Z2_ENEMY_MF
Definition Z2SoundObjMgr.h:78
@ Z2_ENEMY_BI
Definition Z2SoundObjMgr.h:64
@ Z2_ENEMY_UNK
Definition Z2SoundObjMgr.h:26
@ Z2_ENEMY_SM2
Definition Z2SoundObjMgr.h:70
@ Z2_ENEMY_YC
Definition Z2SoundObjMgr.h:22
@ Z2_ENEMY_YD
Definition Z2SoundObjMgr.h:23
@ Z2_ENEMY_HZ
Definition Z2SoundObjMgr.h:49
@ Z2_ENEMY_GE
Definition Z2SoundObjMgr.h:48
@ Z2_ENEMY_OC
Definition Z2SoundObjMgr.h:51
@ Z2_ENEMY_S1
Definition Z2SoundObjMgr.h:18
@ Z2_ENEMY_SF
Definition Z2SoundObjMgr.h:42
@ Z2_ENEMY_FZ
Definition Z2SoundObjMgr.h:52
@ Z2_ENEMY_YMB
Definition Z2SoundObjMgr.h:25
@ Z2_ENEMY_RDB
Definition Z2SoundObjMgr.h:72
@ Z2_ENEMY_YK
Definition Z2SoundObjMgr.h:19
@ Z2_ENEMY_TK2
Definition Z2SoundObjMgr.h:33
@ Z2_ENEMY_SH
Definition Z2SoundObjMgr.h:41
@ Z2_ENEMY_DD
Definition Z2SoundObjMgr.h:63
@ Z2_ENEMY_GG
Definition Z2SoundObjMgr.h:77
@ Z2_ENEMY_DF
Definition Z2SoundObjMgr.h:35
@ Z2_ENEMY_TT
Definition Z2SoundObjMgr.h:65
@ Z2_ENEMY_HM
Definition Z2SoundObjMgr.h:47
@ Z2_ENEMY_ZH
Definition Z2SoundObjMgr.h:75
@ Z2_ENEMY_YG
Definition Z2SoundObjMgr.h:21
@ Z2_ENEMY_RDY
Definition Z2SoundObjMgr.h:24
@ Z2_ENEMY_WB
Definition Z2SoundObjMgr.h:27
@ Z2_ENEMY_SB
Definition Z2SoundObjMgr.h:37
@ Z2_ENEMY_WW
Definition Z2SoundObjMgr.h:68
@ Z2_ENEMY_CR
Definition Z2SoundObjMgr.h:34
@ Z2_ENEMY_PM
Definition Z2SoundObjMgr.h:38
@ Z2_ENEMY_KK
Definition Z2SoundObjMgr.h:73
@ Z2_ENEMY_BG
Definition Z2SoundObjMgr.h:54
@ Z2_ENEMY_BU
Definition Z2SoundObjMgr.h:46
@ Z2_ENEMY_TK
Definition Z2SoundObjMgr.h:32
@ Z2_ENEMY_NZ
Definition Z2SoundObjMgr.h:56
@ Z2_ENEMY_TN
Definition Z2SoundObjMgr.h:80
@ Z2_ENEMY_BA
Definition Z2SoundObjMgr.h:45
@ Z2_ENEMY_DK
Definition Z2SoundObjMgr.h:67
@ Z2_ENEMY_RB
Definition Z2SoundObjMgr.h:58
Definition JASGadget.h:12
static T * getInstance()
Definition JASGadget.h:31
Definition JSUList.h:96
Definition Z2Creature.h:154
Definition Z2SoundObjMgr.h:83
void searchEnemy()
Definition Z2SoundObjMgr.cpp:121
Z2SoundObjMgr()
Definition Z2SoundObjMgr.cpp:13
bool mForceBattle
Definition Z2SoundObjMgr.h:110
void setBattleInit()
Definition Z2SoundObjMgr.cpp:353
u8 mEnemyNumNear
Definition Z2SoundObjMgr.h:103
u8 field_0x18
Definition Z2SoundObjMgr.h:106
void setGhostEnemyState(u8)
Definition Z2SoundObjMgr.cpp:323
Z2EnemyArea mEnemyArea
Definition Z2SoundObjMgr.h:101
u8 mGhostEnemyState
Definition Z2SoundObjMgr.h:107
JSUList< Z2CreatureEnemy > * getEnemyList()
Definition Z2SoundObjMgr.h:98
void deleteEnemyAll()
Definition Z2SoundObjMgr.cpp:369
u8 mTwilightBattle
Definition Z2SoundObjMgr.h:109
bool checkBattleFinish()
Definition Z2SoundObjMgr.cpp:363
u8 field_0x14
Definition Z2SoundObjMgr.h:102
bool isForceBattle()
Definition Z2SoundObjMgr.h:97
u8 getEnemyID(char const *, JSULink< Z2CreatureEnemy > *)
Definition Z2SoundObjMgr.cpp:340
void setForceBattleArea(bool, u16, u16, u16)
Definition Z2SoundObjMgr.cpp:22
u8 isTwilightBattle()
Definition Z2SoundObjMgr.cpp:402
u8 field_0x16
Definition Z2SoundObjMgr.h:104
u8 field_0x1a
Definition Z2SoundObjMgr.h:108
u8 getEnemyNumVeryFar()
Definition Z2SoundObjMgr.h:96
bool removeEnemy(JSULink< Z2CreatureEnemy > *)
Definition Z2SoundObjMgr.cpp:388
u8 mEnemyNumVeryFar
Definition Z2SoundObjMgr.h:105
Definition Z2SoundObjMgr.h:9
bool field_0x0
Definition Z2SoundObjMgr.h:10
u16 field_0x2
Definition Z2SoundObjMgr.h:11
u16 field_0x4
Definition Z2SoundObjMgr.h:12
u16 field_0x6
Definition Z2SoundObjMgr.h:13
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8