00001 // LaneChangeEvent.cpp: implementation of the LaneChangeEvent class. 00002 // 00004 00005 #include "stdafx.h" 00006 #include "LaneChangeEvent.h" 00007 00008 #ifdef _DEBUG 00009 #undef THIS_FILE 00010 static char THIS_FILE[]=__FILE__; 00011 #define new DEBUG_NEW 00012 #endif 00013 00015 // Construction/Destruction 00017 00029 LaneChangeEvent::LaneChangeEvent(int pos, int fromLane, int toLane, int type, bool moveLeft, bool dirPos, double time) 00030 { 00031 m_EventPosition = pos; 00032 m_OriginLane = fromLane; 00033 m_DestinationLane = toLane; 00034 m_VehType = type; 00035 m_MovingLeft = moveLeft; 00036 m_DirPos = dirPos; 00037 m_EventTime = time; 00038 } 00039 00041 LaneChangeEvent::~LaneChangeEvent() 00042 { 00043 00044 } 00045 00046 bool LaneChangeEvent::getChangeLeft() 00047 { 00048 return m_MovingLeft; 00049 } 00050 00051 int LaneChangeEvent::getDestinationLane() 00052 { 00053 return m_DestinationLane; 00054 } 00055 00056 int LaneChangeEvent::getPosition() 00057 { 00058 return m_EventPosition; 00059 } 00060 00061 int LaneChangeEvent::getOriginLane() 00062 { 00063 return m_OriginLane; 00064 } 00065 00066 bool LaneChangeEvent::getDirPos() 00067 { 00068 return m_DirPos; 00069 } 00070 00071 WORD LaneChangeEvent::getVehicleType() 00072 { 00073 return m_VehType; 00074 } 00075 00076 double LaneChangeEvent::getTime() 00077 { 00078 return m_EventTime; 00079 }