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


              
               
 



                              


                             

                       

  


                    

                                      
                                                     
                                             
                                                        
                                        

                                         

                                                

                                                           
  
#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,
	CAR_LIGHTS_NONE
};

class CTrafficLights
{
public:
	static bool bGreenLightsCheat;

	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 uint8 LightForCars1_Visual(void);
	static uint8 LightForCars2_Visual(void);
	static bool ShouldCarStopForLight(CVehicle*, bool);
	static bool ShouldCarStopForBridge(CVehicle*);
};