-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroad.hpp
More file actions
39 lines (33 loc) · 685 Bytes
/
Copy pathroad.hpp
File metadata and controls
39 lines (33 loc) · 685 Bytes
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
#ifndef road_h
#define road_h
class Vehicle;
#include <vector>
#include <iostream>
#include "vehicle.hpp"
using namespace std;
class Road
{
private:
int length;
int width;
int signal_color;
int signal_distance;
public:
vector<vector<char>> road_map;
Road(int len, int wid, int dist);
int get_length();
int get_width();
int get_sig_distance();
int get_signal_color();
void set_sig_colour(int col);
void update(vector<Vehicle *> a);
void display();
};
#endif
//For vehicles and road.
// width w
// ----------
//| |
//| | length l
//| |
// ----------