diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-01-11 13:49:37 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-01-11 13:49:37 +0100 |
commit | 8fab6842832d3141942e551a5d1597ed67d30db9 (patch) | |
tree | 54798ec63c9e25ce2638b2f1ab86ef33d228dc50 /src/core/Accident.h | |
parent | Merge pull request #289 from erorcun/erorcun (diff) | |
download | re3-8fab6842832d3141942e551a5d1597ed67d30db9.tar re3-8fab6842832d3141942e551a5d1597ed67d30db9.tar.gz re3-8fab6842832d3141942e551a5d1597ed67d30db9.tar.bz2 re3-8fab6842832d3141942e551a5d1597ed67d30db9.tar.lz re3-8fab6842832d3141942e551a5d1597ed67d30db9.tar.xz re3-8fab6842832d3141942e551a5d1597ed67d30db9.tar.zst re3-8fab6842832d3141942e551a5d1597ed67d30db9.zip |
Diffstat (limited to 'src/core/Accident.h')
-rw-r--r-- | src/core/Accident.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/Accident.h b/src/core/Accident.h new file mode 100644 index 00000000..6a3088e7 --- /dev/null +++ b/src/core/Accident.h @@ -0,0 +1,29 @@ +#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(); + bool UnattendedAccidents(); + CAccident* FindNearestAccident(CVector, float*); + void Update(void); +}; + +extern CAccidentManager& gAccidentManager;
\ No newline at end of file |