iTS - Intelligent Traffic System  V 1.0.5
 All Classes Functions Variables Properties
TSTrafficLight Class Reference

TS traffic light class. This class is responsible for managing the lights of a Traffic light and making the cars stop on the selected junctions More...

Inheritance diagram for TSTrafficLight:

Classes

class  TSLight
 
class  TSPointReference
 

Public Types

enum  LightType { Green, Red, Yellow, NoLights }
 

Public Attributes

List< TSLightlights = new List<TSLight>()
 The lights. More...
 
TSMainManager manager
 The manager. More...
 
List< TSPointReferencepointsNormalLight = new List<TSPointReference>()
 The points normal light. More...
 
bool enableLight = true
 The enable light. More...
 
bool yellowLightsStopTraffic = true
 The yellow lights stop traffic. More...
 
float lightRange = 500
 The light range. More...
 
int lightToPlay = 0
 The light to play. More...
 

Detailed Description

TS traffic light class. This class is responsible for managing the lights of a Traffic light and making the cars stop on the selected junctions

Member Data Documentation

bool TSTrafficLight.enableLight = true

The enable light.

float TSTrafficLight.lightRange = 500

The light range.

List<TSLight> TSTrafficLight.lights = new List<TSLight>()

The lights.

int TSTrafficLight.lightToPlay = 0

The light to play.

TSMainManager TSTrafficLight.manager

The manager.

List<TSPointReference> TSTrafficLight.pointsNormalLight = new List<TSPointReference>()

The points normal light.

bool TSTrafficLight.yellowLightsStopTraffic = true

The yellow lights stop traffic.