-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTripInfo.h
44 lines (36 loc) · 851 Bytes
/
TripInfo.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
//
// Benjy Berkowicz - 336182589
// Advanced Programming 2016-2017 Bar Ilan
//
#ifndef ADVANCED_EX2_TRIPINFO_H
#define ADVANCED_EX2_TRIPINFO_H
#include <stack>
#include <vector>
#include "Point.h"
class TripInfo {
private:
int rideID;
int currentDistance;
Point startPoint;
Point endPoint;
int tarrif;
int numPassengers;
int startTime;
std::vector<Point>* route;
public:
TripInfo(int, Point, Point, int, int, int);
TripInfo();
int getStartTime();
void updateMeter(int);
void changeEndPoint(Point);
int getNumPassengers();
int getTarrif();
void assignRoute(std::vector<Point>*);
std::vector<Point>* getRoute();
int getRideID();
int getCurrentDistance();
virtual ~TripInfo();
Point getStartPoint();
Point getEndPoint();
};
#endif //ADVANCED_EX2_TRIPINFO_H