mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-18 02:59:16 +00:00
28 lines
557 B
C++
28 lines
557 B
C++
#pragma once
|
|
|
|
class CEntity;
|
|
class CVehicle;
|
|
|
|
enum {
|
|
PED_LIGHTS_WALK,
|
|
PED_LIGHTS_WALK_BLINK,
|
|
PED_LIGHTS_DONT_WALK,
|
|
|
|
CAR_LIGHTS_GREEN = 0,
|
|
CAR_LIGHTS_YELLOW,
|
|
CAR_LIGHTS_RED
|
|
};
|
|
|
|
class CTrafficLights
|
|
{
|
|
public:
|
|
static void DisplayActualLight(CEntity *ent);
|
|
static void ScanForLightsOnMap(void);
|
|
static int FindTrafficLightType(CEntity *light);
|
|
static uint8 LightForPeds(void);
|
|
static uint8 LightForCars1(void);
|
|
static uint8 LightForCars2(void);
|
|
static bool ShouldCarStopForLight(CVehicle*, bool);
|
|
static bool ShouldCarStopForBridge(CVehicle*);
|
|
};
|