mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-17 00:49:00 +00:00
27 lines
507 B
C
27 lines
507 B
C
|
#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*);
|
||
|
};
|
||
|
|
||
|
extern CAccidentManager& gAccidentManager;
|