2019-06-30 12:59:55 +02:00
|
|
|
#pragma once
|
2019-07-09 18:50:35 +02:00
|
|
|
|
|
|
|
class CEntity;
|
2019-06-30 12:59:55 +02:00
|
|
|
|
|
|
|
class CFire
|
|
|
|
{
|
2019-07-26 14:27:13 +02:00
|
|
|
public:
|
2019-07-09 18:50:35 +02:00
|
|
|
bool m_bIsOngoing;
|
2019-09-15 01:28:07 +02:00
|
|
|
bool m_bIsScriptFire;
|
2019-07-09 18:50:35 +02:00
|
|
|
bool m_bPropogationFlag;
|
|
|
|
bool m_bAudioSet;
|
2019-06-30 12:59:55 +02:00
|
|
|
CVector m_vecPos;
|
|
|
|
CEntity *m_pEntity;
|
|
|
|
CEntity *m_pSource;
|
|
|
|
int m_nExtinguishTime;
|
|
|
|
int m_nStartTime;
|
|
|
|
int field_20;
|
|
|
|
int field_24;
|
2019-09-15 01:28:07 +02:00
|
|
|
uint32 m_nFiremenPuttingOut;
|
2019-06-30 12:59:55 +02:00
|
|
|
float field_2C;
|
|
|
|
|
|
|
|
void Extinguish(void);
|
2019-07-09 18:50:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CFireManager
|
|
|
|
{
|
2019-09-15 01:28:07 +02:00
|
|
|
enum {
|
|
|
|
MAX_FIREMEN_ATTENDING = 2,
|
|
|
|
};
|
|
|
|
uint32 m_nTotalFires;
|
|
|
|
CFire m_aFires[NUM_FIRES];
|
2019-07-09 18:50:35 +02:00
|
|
|
public:
|
|
|
|
void StartFire(CEntity *entityOnFire, CEntity *culprit, float, uint32);
|
2019-10-19 00:23:40 +02:00
|
|
|
void Update(void);
|
2019-07-26 14:27:13 +02:00
|
|
|
CFire *FindFurthestFire_NeverMindFireMen(CVector coors, float, float);
|
2019-09-15 01:28:07 +02:00
|
|
|
CFire *FindNearestFire(CVector, float*);
|
|
|
|
uint32 GetTotalActiveFires() const { return m_nTotalFires; }
|
2019-07-09 18:50:35 +02:00
|
|
|
};
|
|
|
|
extern CFireManager &gFireManager;
|