diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-30 19:08:31 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-30 19:08:31 +0200 |
commit | 09c9e16cb122f2939f60be7565712324897bd5f9 (patch) | |
tree | f39e8cd26654657592d6ba3f4ca96ae08d4f945a /src/control/RoadBlocks.h | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
download | re3-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 'src/control/RoadBlocks.h')
-rw-r--r-- | src/control/RoadBlocks.h | 18 |
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(); }; |