Re3/src/core/Fire.h

47 lines
1.0 KiB
C
Raw Normal View History

#pragma once
2019-07-09 12:50:35 -04:00
class CEntity;
class CFire
{
public:
2019-07-09 12:50:35 -04:00
bool m_bIsOngoing;
2019-09-14 19:28:07 -04:00
bool m_bIsScriptFire;
2019-07-09 12:50:35 -04:00
bool m_bPropogationFlag;
bool m_bAudioSet;
CVector m_vecPos;
CEntity *m_pEntity;
CEntity *m_pSource;
int m_nExtinguishTime;
int m_nStartTime;
int field_20;
int field_24;
2019-09-14 19:28:07 -04:00
uint32 m_nFiremenPuttingOut;
float field_2C;
void Extinguish(void);
2019-07-09 12:50:35 -04:00
};
class CFireManager
{
2019-09-14 19:28:07 -04:00
enum {
MAX_FIREMEN_ATTENDING = 2,
};
uint32 m_nTotalFires;
CFire m_aFires[NUM_FIRES];
2019-07-09 12:50:35 -04:00
public:
void StartFire(CEntity *entityOnFire, CEntity *culprit, float, uint32);
2019-12-31 18:35:54 -05:00
void StartFire(CVector, float, uint8);
2019-10-18 18:23:40 -04:00
void Update(void);
CFire *FindFurthestFire_NeverMindFireMen(CVector coors, float, float);
2019-09-14 19:28:07 -04:00
CFire *FindNearestFire(CVector, float*);
2019-12-31 18:55:00 -05:00
uint32 GetTotalActiveFires() const;
2019-12-31 18:35:54 -05:00
void ExtinguishPoint(CVector, float);
int32 StartScriptFire(const CVector& pos, CEntity* culprit, float, uint8);
bool IsScriptFireExtinguish(int16);
void RemoveScriptFire(int16);
void RemoveAllScriptFires(void);
void SetScriptFireAudio(int16, bool);
2019-07-09 12:50:35 -04:00
};
extern CFireManager &gFireManager;