1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-10 20:39:15 +00:00
re3/src/control/AccidentManager.h

28 lines
527 B
C
Raw Normal View History

2019-09-14 23:28:07 +00:00
#pragma once
#include "common.h"
#include "config.h"
class CPed;
class CAccident
{
public:
CPed *m_pVictim;
uint32 m_nMedicsAttending;
uint32 m_nMedicsPerformingCPR;
CAccident() : m_pVictim(nil), m_nMedicsAttending(0), m_nMedicsPerformingCPR(0) {}
};
class CAccidentManager
{
CAccident m_aAccidents[NUM_ACCIDENTS];
enum {
MAX_MEDICS_TO_ATTEND_ACCIDENT = 2
};
public:
uint16 CountActiveAccidents();
CAccident* FindNearestAccident(CVector, float*);
2019-10-18 22:23:40 +00:00
void Update(void);
2019-09-14 23:28:07 +00:00
};
extern CAccidentManager& gAccidentManager;