summaryrefslogtreecommitdiffstats
path: root/src/control/RoadBlocks.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-30 19:08:31 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-30 19:08:31 +0200
commit09c9e16cb122f2939f60be7565712324897bd5f9 (patch)
treef39e8cd26654657592d6ba3f4ca96ae08d4f945a /src/control/RoadBlocks.h
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
downloadre3-09c9e16cb122f2939f60be7565712324897bd5f9.tar
re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.gz
re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.bz2
re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.lz
re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.xz
re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.zst
re3-09c9e16cb122f2939f60be7565712324897bd5f9.zip
Diffstat (limited to '')
-rw-r--r--src/control/RoadBlocks.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/control/RoadBlocks.h b/src/control/RoadBlocks.h
index c8469ba5..ef614950 100644
--- a/src/control/RoadBlocks.h
+++ b/src/control/RoadBlocks.h
@@ -3,18 +3,28 @@
class CVehicle;
+class CScriptRoadblock
+{
+public:
+ CVector m_vInf;
+ CVector m_vSup;
+ bool m_bInUse;
+ CVector GetPosition() { return (m_vInf + m_vSup) / 2; }
+};
+
class CRoadBlocks
{
public:
static int16 NumRoadBlocks;
-#ifndef MIAMI
- static int16 RoadBlockObjects[NUMROADBLOCKS];
-#else
static int16 RoadBlockNodes[NUMROADBLOCKS];
-#endif
static bool InOrOut[NUMROADBLOCKS];
+ static CScriptRoadblock aScriptRoadBlocks[NUM_SCRIPT_ROADBLOCKS];
static void Init(void);
static void GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType);
static void GenerateRoadBlocks(void);
+
+ static void CreateRoadBlockBetween2Points(CVector, CVector);
+ static void RegisterScriptRoadBlock(CVector, CVector);
+ static void ClearScriptRoadBlocks();
};