diff options
author | erorcun <erayorcunus@gmail.com> | 2020-02-17 21:02:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 21:02:58 +0100 |
commit | 16ea0527dda06b8f844a23b29d3e9615cf9d85da (patch) | |
tree | 504304d257e44fd379c01600d35841573ed368b4 /src/peds/Population.h | |
parent | Merge pull request #327 from Nick007J/master (diff) | |
parent | CPopulation 1 (diff) | |
download | re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.gz re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.bz2 re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.lz re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.xz re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.zst re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.zip |
Diffstat (limited to 'src/peds/Population.h')
-rw-r--r-- | src/peds/Population.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/peds/Population.h b/src/peds/Population.h new file mode 100644 index 00000000..c8f6f985 --- /dev/null +++ b/src/peds/Population.h @@ -0,0 +1,76 @@ +#pragma once + +#include "Game.h" +#include "PedType.h" + +class CPed; +class CVehicle; + +struct PedGroup +{ + int32 models[NUMMODELSPERPEDGROUP]; +}; + +// Don't know the original name +struct RegenerationPoint +{ + eLevelName srcLevel; // this and below one may need to be exchanged + eLevelName destLevel; + float x1; + float x2; + float y1; + float y2; + float z1; + float z2; + CVector destPosA; + CVector destPosB; + CVector srcPosA; + CVector srcPosB; +}; + +class CPopulation +{ +public: + static PedGroup (&ms_pPedGroups)[NUMPEDGROUPS]; + static bool &ms_bGivePedsWeapons; + static int32 &m_AllRandomPedsThisType; + static float &PedDensityMultiplier; + static uint32 &ms_nTotalMissionPeds; + static int32 &MaxNumberOfPedsInUse; + static uint32& ms_nNumCivMale; + static uint32 &ms_nNumCivFemale; + static uint32 &ms_nNumCop; + static bool &bZoneChangeHasHappened; + static uint32 &ms_nNumEmergency; + static uint32& m_CountDownToPedsAtStart; + static uint32& ms_nNumGang1; + static uint32& ms_nNumGang2; + static uint32& ms_nTotalPeds; + static uint32& ms_nNumGang3; + static uint32& ms_nTotalGangPeds; + static uint32& ms_nNumGang4; + static uint32& ms_nTotalCivPeds; + static uint32& ms_nNumGang5; + static uint32& ms_nNumDummy; + static uint32& ms_nNumGang6; + static uint32& ms_nNumGang9; + static uint32& ms_nNumGang7; + static uint32& ms_nNumGang8; + static CVector& RegenerationPoint_a; + static CVector& RegenerationPoint_b; + static CVector& RegenerationForward; + + static void Initialise(); + static void Update(void); + static void LoadPedGroups(); + static void UpdatePedCount(ePedType, bool); + static void DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool); + static CPed *AddPedInCar(CVehicle *vehicle); + static bool IsPointInSafeZone(CVector *coors); + static void RemovePed(CPed *ent); + static int32 ChooseCivilianOccupation(int32); + static int32 ChoosePolicePedOccupation(); + static int32 ChooseGangOccupation(int); + static void FindCollisionZoneForCoors(CVector*, int*, eLevelName*); + static void FindClosestZoneForCoors(CVector*, int*, eLevelName, eLevelName); +}; |