summaryrefslogtreecommitdiff
path: root/src/core/Wanted.h
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-07-07 15:16:54 +0200
committer_AG <gennariarmando@outlook.com>2019-07-07 15:16:54 +0200
commitd1c6a6aaa6c17250e069d1267b27e13303d6e20f (patch)
tree76d55bfd8bcc8f72cdd4d261c0bb1eaa050e522a /src/core/Wanted.h
parent0ac6d0515e1ba703da2c0f742d91e7b550feac06 (diff)
parent53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb (diff)
Merge branch 'master' of https://github.com/gtamodding/re3
Diffstat (limited to 'src/core/Wanted.h')
-rw-r--r--src/core/Wanted.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/core/Wanted.h b/src/core/Wanted.h
new file mode 100644
index 00000000..d14bb905
--- /dev/null
+++ b/src/core/Wanted.h
@@ -0,0 +1,49 @@
+#pragma once
+#include "Entity.h"
+#include "math/Vector.h"
+#include "CopPed.h"
+
+enum eWantedLevel {
+ NOTWANTED,
+ WANTEDLEVEL_1,
+ WANTEDLEVEL_2,
+ WANTEDLEVEL_3,
+ WANTEDLEVEL_4,
+ WANTEDLEVEL_5,
+ WANTEDLEVEL_6,
+};
+
+class CWanted
+{
+public:
+ int32 m_nChaos;
+ int32 m_nLastUpdateTime;
+ int32 m_nLastWantedLevelChange;
+ float m_fCrimeSensitivity;
+ uint8 m_CurrentCops;
+ uint8 m_MaxCops;
+ uint8 m_MaximumLawEnforcerVehicles;
+ int8 field_19;
+ int16 m_RoadblockDensity;
+ uint8 m_IsIgnoredByCops : 1;
+ uint8 m_IsIgnoredByEveryOne : 1;
+ uint8 m_IsSwatRequired : 1;
+ uint8 m_IsFbiRequired : 1;
+ uint8 m_IdArmyRequired : 1;
+ int8 field_23;
+ int32 m_nWantedLevel;
+ CCrime m_sCrimes[16];
+ CCopPed *m_pCops[10];
+ static int32 &MaximumWantedLevel;
+
+public:
+ bool AreSwatRequired();
+ bool AreFbiRequired();
+ bool AreArmyRequired();
+ int NumOfHelisRequired();
+ void SetWantedLevel(int32);
+ void ClearQdCrimes();
+ void UpdateWantedLevel();
+};
+
+static_assert(sizeof(CWanted) == 0x204, "CWanted: error");