-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.hh
More file actions
48 lines (38 loc) · 689 Bytes
/
map.hh
File metadata and controls
48 lines (38 loc) · 689 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
40
41
42
43
44
45
46
47
48
#pragma once
#include <vector>
#include <queue>
class Ride;
class Vehicle;
class Map
{
public:
int rows;
int column;
int vehicules;
int rides; // numbert of rides
int bonus;
int steps;
void print();
std::vector<Ride> rides_vector;
std::vector<Vehicle> vehicles;
};
class Ride
{
public:
void print();
std::vector<int> start_coord; // tab [x , y] x ieme ligne y eme colomn
std::vector<int> end_coord;
int earliest_start;
int lastest_start;
bool taken = false;
};
class Vehicle
{
public:
int x = 0;
int y = 0;
std::queue<int> done_rides;
bool was_at_begin = false;
int current_ride = -1;
};
Map parser();