re3-wiiu/src/core/Accident.h

29 lines
556 B
C
Raw Normal View History

2019-09-15 01:28:07 +02: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();
2019-12-22 16:28:16 +01:00
bool UnattendedAccidents();
2019-09-15 01:28:07 +02:00
CAccident* FindNearestAccident(CVector, float*);
2019-10-19 00:23:40 +02:00
void Update(void);
2019-09-15 01:28:07 +02:00
};
extern CAccidentManager& gAccidentManager;