diff options
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(); }; |