summaryrefslogblamecommitdiffstats
path: root/src/control/TrafficLights.h
blob: 06505ed63328c28e0c4987aedf7ada60cc5b26a3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


              
               
 





                              



                                                     
                                             
                                        

                                                           
  
#pragma once

class CEntity;
class CVehicle;

enum {
	PED_LIGHTS_WALK,
	PED_LIGHTS_WALK_BLINK,
	PED_LIGHTS_DONT_WALK,
};

class CTrafficLights
{
public:
	static void DisplayActualLight(CEntity *ent);
	static void ScanForLightsOnMap(void);
	static uint8 LightForPeds(void);
	static bool ShouldCarStopForLight(CVehicle*, bool);
	static bool ShouldCarStopForBridge(CVehicle*);
};