2019-08-11 19:11:54 +02:00
|
|
|
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
class CVehicle;
|
|
|
|
|
2020-05-30 19:08:31 +02:00
|
|
|
class CScriptRoadblock
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CVector m_vInf;
|
|
|
|
CVector m_vSup;
|
|
|
|
bool m_bInUse;
|
|
|
|
CVector GetPosition() { return (m_vInf + m_vSup) / 2; }
|
|
|
|
};
|
|
|
|
|
2019-08-11 19:11:54 +02:00
|
|
|
class CRoadBlocks
|
|
|
|
{
|
|
|
|
public:
|
2020-04-17 07:54:14 +02:00
|
|
|
static int16 NumRoadBlocks;
|
2020-05-05 17:04:43 +02:00
|
|
|
static int16 RoadBlockNodes[NUMROADBLOCKS];
|
2020-04-17 07:54:14 +02:00
|
|
|
static bool InOrOut[NUMROADBLOCKS];
|
2020-05-30 19:08:31 +02:00
|
|
|
static CScriptRoadblock aScriptRoadBlocks[NUM_SCRIPT_ROADBLOCKS];
|
2020-03-25 15:13:06 +01:00
|
|
|
|
2019-10-19 00:23:40 +02:00
|
|
|
static void Init(void);
|
2020-05-24 15:14:27 +02:00
|
|
|
static void GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType);
|
2019-10-19 00:23:40 +02:00
|
|
|
static void GenerateRoadBlocks(void);
|
2020-05-30 19:08:31 +02:00
|
|
|
|
|
|
|
static void CreateRoadBlockBetween2Points(CVector, CVector);
|
|
|
|
static void RegisterScriptRoadBlock(CVector, CVector);
|
|
|
|
static void ClearScriptRoadBlocks();
|
2019-08-11 19:11:54 +02:00
|
|
|
};
|