-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPlayerDriver.cpp
67 lines (44 loc) · 1.37 KB
/
PlayerDriver.cpp
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
//
// Created by Noor on 2021-09-28.
//
#include <iostream>
#include "Player.h"
#include <vector>
#include "Orders.h"
#include "Cards.h"
using namespace std;
void PlayerTester();
void PlayerTester(){
//creating arbitary list of territories
Territory *t1=new Territory("hhh",1,2,6);
Territory *t2=new Territory("testttt",1,2,9);
vector<Territory *> territoriesList={t1, t2};
//creating arbitary list of orders
OrderList orderList;
bool a = true;
bool b = true;
int a1 = 1;
int a2 = 2;
vector<string> list1 = {"a"};
vector<string> list2 = {"b"};
Airlifts * OpOINTER1 = new Airlifts(a,list1,a1);
Airlifts * OpOINTER2 = new Airlifts(b,list2,a2);
orderList.set_order_list(OpOINTER1);
orderList.set_order_list(OpOINTER2);
OrderList * ListPointer = new OrderList;
ListPointer = &orderList;
//creating arbitary card and then hand
Bomb bomb2;
Card* PointerBomb2 =& bomb2;
vector<Card *> MyCollectionOfCards2 ;
MyCollectionOfCards2.push_back(PointerBomb2);
cout<<"hello"<<endl;
Hand ZaHande2 (MyCollectionOfCards2);
cout<<"hello2"<<endl;
Hand *hdptr=&ZaHande2;
//creating a player
cout<<"hello3"<<endl;
Player p1= Player(territoriesList, (ListPointer), hdptr, " Noor Hammodi ");
cout<<"hello4"<<endl;
cout<<p1;
}