-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAgency.h
55 lines (50 loc) · 1.38 KB
/
Agency.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
//////////////////////////////////
/* Ahmet Polat */
/* 150170109 */
/* 01/05/2021 */
//////////////////////////////////
#pragma once
#include <iostream>
#include "Mission.h"
using namespace std;
class Agency{
private:
string name;
int cash;
int ticketPrice;
Mission* completedMissions;
int numOfCompletedMission;
Mission* nextMission;
int numOfNextMission;
public:
Agency(string="", int=0, int=0);
~Agency();
void addMission(const Mission&);
void executeNextMission();
friend ostream& operator<<(ostream& os, const Agency& obj);
//getters setter
string getName() const{
return name;
}
int getCash()const{
return cash;
}
int getTicketPrice()const{
return ticketPrice;
}
int getNumOfCompletedMission()const{
return numOfCompletedMission;
}
int getNumOfNextMission()const{
return numOfNextMission;
}
void setName(string name){
this->name = name;
}
void setCash(int cash){
this->cash = cash;
}
void setTicketPrice(int ticketPrice){
this->ticketPrice = ticketPrice;
}
};