00001
00002
00004
00005 #if !defined(AFX_SPEEDLIMIT_H__1E65A464_295B_4549_A0A1_B9174C5AEE6B__INCLUDED_)
00006 #define AFX_SPEEDLIMIT_H__1E65A464_295B_4549_A0A1_B9174C5AEE6B__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "stdafx.h"
00013 #include "RoadSegment.h"
00014
00017 class SpeedLimit : public RoadSegment
00018 {
00019 public:
00020 void removeVehicle(Vehicle* pVeh);
00021 void addVehicle(Vehicle* pVeh);
00022 double getSpeedLimit();
00023 SpeedLimit(int start, int end, double limit, bool DirPos);
00024 virtual ~SpeedLimit();
00025
00026 private:
00028 double m_SpeedLimit;
00029 };
00030
00031 #endif // !defined(AFX_SPEEDLIMIT_H__1E65A464_295B_4549_A0A1_B9174C5AEE6B__INCLUDED_)