forked from Omar-Said-4/Shipping_Company
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cargo.h
70 lines (59 loc) · 1.6 KB
/
cargo.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
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef PROJECT_CARGO_H
#define PROJECT_CARGO_H
class trucks;
enum cargoType {
VIP=0,
SPECIAL=1,
NORMAL=2
};
class cargo {
int days,hours;
cargoType Type;
int loadTime;
int deliveryDistance;
int cost;
int id;
int deliveryTime;
int loadedDay;
int loadedHour;
int deliverededDay;
int deliveredHour;
int truckId;
bool promoted;
trucks *currTruck;
int waitedTime;
public:
cargo();
cargo( int days, int hours, cargoType type, int loadTime,
int deliveryDistance, int cost, trucks *currTruck);
cargo(int ID);
bool setCargoType(int type);
void getDeliverytime(int& pDay,int&pHour);
void setDeliverytime(int val);
cargoType getCargoType();
void getWaitingTime(int ch, int cd, int& h, int& d);
trucks *getCurrTruck() const;
bool isPromoted()const;
void promote();
void setCurrTruck(trucks *currTruck);
bool setTime(int Days, int Hours);
void setloadedtime(int val);
void setdeliveredTime(int a, int b);
int getloadedDay();
void setWaitedTime(int pWaitedTime);
int getWaitedTime();
int getloadedHour();
bool setLoadTime(int LoadTime);
int getTruckId()const;
void setTruckId( int TID);
bool setDeliveryDistance(int DeliveryDistance);
bool setCost(int Cost);
void getTime(int &Days, int &Hours) const;
int getLoadTime() const;
int getDeliveryDistance() const;
int getCost() const;
int getId();
void setID(int a);
~cargo();
};
#endif //PROJECT_CARGO_H