2019-06-30 21:06:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CEntity;
|
2019-08-11 19:11:54 +02:00
|
|
|
class CVehicle;
|
2019-06-30 21:06:55 +02:00
|
|
|
|
2019-08-08 02:21:38 +02:00
|
|
|
enum {
|
|
|
|
PED_LIGHTS_WALK,
|
|
|
|
PED_LIGHTS_WALK_BLINK,
|
|
|
|
PED_LIGHTS_DONT_WALK,
|
2020-04-10 18:36:39 +02:00
|
|
|
|
|
|
|
CAR_LIGHTS_GREEN = 0,
|
|
|
|
CAR_LIGHTS_YELLOW,
|
2020-10-11 11:56:33 +02:00
|
|
|
CAR_LIGHTS_RED,
|
|
|
|
CAR_LIGHTS_NONE
|
2019-08-08 02:21:38 +02:00
|
|
|
};
|
|
|
|
|
2019-06-30 21:06:55 +02:00
|
|
|
class CTrafficLights
|
|
|
|
{
|
|
|
|
public:
|
2020-08-30 22:47:12 +02:00
|
|
|
static bool bGreenLightsCheat;
|
|
|
|
|
2019-06-30 21:06:55 +02:00
|
|
|
static void DisplayActualLight(CEntity *ent);
|
2019-10-19 00:23:40 +02:00
|
|
|
static void ScanForLightsOnMap(void);
|
2020-04-10 18:36:39 +02:00
|
|
|
static int FindTrafficLightType(CEntity *light);
|
2019-08-08 02:21:38 +02:00
|
|
|
static uint8 LightForPeds(void);
|
2020-04-10 18:36:39 +02:00
|
|
|
static uint8 LightForCars1(void);
|
|
|
|
static uint8 LightForCars2(void);
|
2020-10-11 11:56:33 +02:00
|
|
|
static uint8 LightForCars1_Visual(void);
|
|
|
|
static uint8 LightForCars2_Visual(void);
|
2019-08-11 19:11:54 +02:00
|
|
|
static bool ShouldCarStopForLight(CVehicle*, bool);
|
|
|
|
static bool ShouldCarStopForBridge(CVehicle*);
|
2019-06-30 21:06:55 +02:00
|
|
|
};
|