mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
221f40e609
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
#ifndef Z2SOUNDOBJMGR_H
|
|
#define Z2SOUNDOBJMGR_H
|
|
|
|
#include "JSystem/JAudio2/JASGadget.h"
|
|
#include "JSystem/JSupport/JSUList.h"
|
|
|
|
class Z2CreatureEnemy;
|
|
|
|
class Z2SoundObjMgr : protected JSUList<Z2CreatureEnemy>, public JASGlobalInstance<Z2SoundObjMgr> {
|
|
public:
|
|
Z2SoundObjMgr();
|
|
void setForceBattleArea(bool, u16, u16, u16);
|
|
void searchEnemy();
|
|
void setGhostEnemyState(u8);
|
|
void getEnemyID(char const*, JSULink<Z2CreatureEnemy>*);
|
|
void setBattleInit();
|
|
void checkBattleFinish();
|
|
void deleteEnemyAll();
|
|
void removeEnemy(JSULink<Z2CreatureEnemy>*);
|
|
bool isTwilightBattle();
|
|
|
|
bool isForceBattle() { return mForceBattle; }
|
|
|
|
private:
|
|
/* 0x0C */ u8 field_0xc[2];
|
|
/* 0x0E */ u16 field_0xe;
|
|
/* 0x10 */ u16 field_0x10;
|
|
/* 0x12 */ u16 field_0x12;
|
|
/* 0x14 */ u8 field_0x14;
|
|
/* 0x15 */ u8 mEnemyNumNear;
|
|
/* 0x16 */ u8 field_0x16;
|
|
/* 0x17 */ u8 mEnemyNumVeryFar;
|
|
/* 0x18 */ u8 field_0x18;
|
|
/* 0x19 */ u8 mGhostEnemyState;
|
|
/* 0x1A */ bool field_0x1a;
|
|
/* 0x1B */ bool mTwilightBattle;
|
|
/* 0x1C */ bool mForceBattle;
|
|
}; // Size = 0x20
|
|
|
|
inline Z2SoundObjMgr* Z2GetSoundObjMgr() {
|
|
return JASGlobalInstance<Z2SoundObjMgr>::getInstance();
|
|
}
|
|
|
|
#endif /* Z2SOUNDOBJMGR_H */
|