mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Initial commit
This commit is contained in:
commit
77cdaaf97e
827 changed files with 418745 additions and 0 deletions
31
src/core/Accident.h
Normal file
31
src/core/Accident.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
#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:
|
||||
CAccident *GetNextFreeAccident();
|
||||
void ReportAccident(CPed *ped);
|
||||
void Update();
|
||||
CAccident *FindNearestAccident(CVector vecPos, float *pDistance);
|
||||
uint16 CountActiveAccidents();
|
||||
bool UnattendedAccidents();
|
||||
bool WorkToDoForMedics();
|
||||
};
|
||||
|
||||
extern CAccidentManager gAccidentManager;
|
||||
Loading…
Add table
Add a link
Reference in a new issue