Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
IntersectionEngine.h
1 //
2 // IntersectionEngine.h
3 //
4 // Copyright (c) 2001-2009 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef INTERSECTIONENGINE
9 #define INTERSECTIONENGINE
10 
11 #include "Roads.h"
12 #include "Engine.h"
13 
16 
17 //traffic light times
18 #define LT_SWITCH_TIME 10
19 #define LT_SWITCH_TIME2 1 //for yellow lights.
20 
31 {
32 public:
33  //builds the intersection engine. links it to the node.
36  void Eval();
37 
38 protected:
39  NodeGeom *m_pNode;
40  LightStatus *m_Lights; //an array of light states
41 
42  int m_iCurState;
43  int m_iTotalStates;
44 
45  float m_fNextChange;
46  bool m_bFirstTime;
47 };
48  // transp
50 
51 #endif // INTERSECTIONENGINE
52