diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-09-15 01:28:07 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-09-15 01:28:07 +0200 |
commit | 368ce0d4e5607b2c7e442efe73da71b266c8727b (patch) | |
tree | 6e3b9e8bb1f43b4952ed5f4910e3d7f05d47037f /src/control/AccidentManager.h | |
parent | fix debug (diff) | |
download | re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.tar re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.tar.gz re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.tar.bz2 re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.tar.lz re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.tar.xz re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.tar.zst re3-368ce0d4e5607b2c7e442efe73da71b266c8727b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/AccidentManager.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/control/AccidentManager.h b/src/control/AccidentManager.h new file mode 100644 index 00000000..999abddc --- /dev/null +++ b/src/control/AccidentManager.h @@ -0,0 +1,27 @@ +#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;
\ No newline at end of file |