mirror of
https://github.com/halpz/re3.git
synced 2024-12-26 18:15:27 +00:00
Update Fire.h
This commit is contained in:
parent
4e7c186285
commit
43fb59e356
|
@ -7,18 +7,22 @@ class CFire
|
||||||
public:
|
public:
|
||||||
bool m_bIsOngoing;
|
bool m_bIsOngoing;
|
||||||
bool m_bIsScriptFire;
|
bool m_bIsScriptFire;
|
||||||
bool m_bPropogationFlag;
|
bool m_bPropagationFlag;
|
||||||
bool m_bAudioSet;
|
bool m_bAudioSet;
|
||||||
CVector m_vecPos;
|
CVector m_vecPos;
|
||||||
CEntity *m_pEntity;
|
CEntity *m_pEntity;
|
||||||
CEntity *m_pSource;
|
CEntity *m_pSource;
|
||||||
int m_nExtinguishTime;
|
uint32 m_nExtinguishTime;
|
||||||
int m_nStartTime;
|
uint32 m_nStartTime;
|
||||||
int field_20;
|
int32 field_20;
|
||||||
int field_24;
|
uint32 field_24;
|
||||||
uint32 m_nFiremenPuttingOut;
|
uint32 m_nFiremenPuttingOut;
|
||||||
float field_2C;
|
float m_fStrength;
|
||||||
|
|
||||||
|
CFire();
|
||||||
|
~CFire();
|
||||||
|
void ProcessFire(void);
|
||||||
|
void ReportThisFire(void);
|
||||||
void Extinguish(void);
|
void Extinguish(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,20 +31,21 @@ class CFireManager
|
||||||
enum {
|
enum {
|
||||||
MAX_FIREMEN_ATTENDING = 2,
|
MAX_FIREMEN_ATTENDING = 2,
|
||||||
};
|
};
|
||||||
uint32 m_nTotalFires;
|
|
||||||
public:
|
public:
|
||||||
|
uint32 m_nTotalFires;
|
||||||
CFire m_aFires[NUM_FIRES];
|
CFire m_aFires[NUM_FIRES];
|
||||||
void StartFire(CEntity *entityOnFire, CEntity *culprit, float, uint32);
|
void StartFire(CVector pos, float size, bool propagation);
|
||||||
void StartFire(CVector, float, uint8);
|
void StartFire(CEntity *entityOnFire, CEntity *fleeFrom, float strength, bool propagation);
|
||||||
void Update(void);
|
void Update(void);
|
||||||
CFire *FindFurthestFire_NeverMindFireMen(CVector coors, float, float);
|
CFire *FindFurthestFire_NeverMindFireMen(CVector coords, float minRange, float maxRange);
|
||||||
CFire *FindNearestFire(CVector, float*);
|
CFire *FindNearestFire(CVector vecPos, float *pDistance);
|
||||||
|
CFire *GetNextFreeFire(void);
|
||||||
uint32 GetTotalActiveFires() const;
|
uint32 GetTotalActiveFires() const;
|
||||||
void ExtinguishPoint(CVector, float);
|
void ExtinguishPoint(CVector point, float range);
|
||||||
int32 StartScriptFire(const CVector& pos, CEntity* culprit, float, uint8);
|
int32 StartScriptFire(const CVector &pos, CEntity *target, float strength, bool propagation);
|
||||||
bool IsScriptFireExtinguish(int16);
|
bool IsScriptFireExtinguish(int16 index);
|
||||||
void RemoveScriptFire(int16);
|
|
||||||
void RemoveAllScriptFires(void);
|
void RemoveAllScriptFires(void);
|
||||||
void SetScriptFireAudio(int16, bool);
|
void RemoveScriptFire(int16 index);
|
||||||
|
void SetScriptFireAudio(int16 index, bool state);
|
||||||
};
|
};
|
||||||
extern CFireManager &gFireManager;
|
extern CFireManager &gFireManager;
|
||||||
|
|
Loading…
Reference in a new issue