-
Notifications
You must be signed in to change notification settings - Fork 0
/
vehicles.h
57 lines (49 loc) · 912 Bytes
/
vehicles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef HELLO
#define HELLO
#include <bits/stdc++.h>
using namespace std;
class Vehicle {
public: int id;
int length;
int width;
float speed;
float acc;
string colour;
float max_speed;
float position[2];
int lane;
char type;
float angle=0;
Vehicle(int l,int w,float s,float a,float m_s,float x,float y,int lan, string str, char c){
length = l;
width = w;
speed = s;
//id = iddd;
acc = a;
//brake = b;
colour=str;
//follow = f;
//laneChangeFreq = lcf;
max_speed = m_s;
position[0] = x; position[1] = y;
lane=lan;
type=c;
}
};
class Road {
public: int id;
int length;
int width;
Road(int i,int l,int w){
id = i;
length = l;
width = w;
}
};
class Traffic_Signal {
public: int signal;
Traffic_Signal(int s){
signal = s;
}
};
#endif