mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
31 lines
709 B
C++
31 lines
709 B
C++
#pragma once
|
|
#include "common.h"
|
|
|
|
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;
|
|
static int16 RoadBlockNodes[NUMROADBLOCKS];
|
|
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();
|
|
};
|