summaryrefslogtreecommitdiffstats
path: root/src/control/TrafficLights.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-11 01:04:56 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-11 01:04:56 +0200
commitc8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33 (patch)
tree24985c610beec3d1e4ac1804851467b40d8ccb02 /src/control/TrafficLights.h
parentRecord (diff)
parentfixing r* visioned leak (diff)
downloadre3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.tar
re3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.tar.gz
re3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.tar.bz2
re3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.tar.lz
re3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.tar.xz
re3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.tar.zst
re3-c8ac25ebfdd068efb3c1aa53fcbd4efd0f7f6b33.zip
Diffstat (limited to 'src/control/TrafficLights.h')
-rw-r--r--src/control/TrafficLights.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/TrafficLights.h b/src/control/TrafficLights.h
index 06505ed6..f3df6cd5 100644
--- a/src/control/TrafficLights.h
+++ b/src/control/TrafficLights.h
@@ -7,6 +7,10 @@ enum {
PED_LIGHTS_WALK,
PED_LIGHTS_WALK_BLINK,
PED_LIGHTS_DONT_WALK,
+
+ CAR_LIGHTS_GREEN = 0,
+ CAR_LIGHTS_YELLOW,
+ CAR_LIGHTS_RED
};
class CTrafficLights
@@ -14,7 +18,10 @@ 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*);
};