Repository navigation
Expand file tree
/
Copy pathPlayerDriver.cpp
More file actions
42 lines (42 loc) · 1.41 KB
/
Copy pathPlayerDriver.cpp
File metadata and controls
42 lines (42 loc) · 1.41 KB
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
//#include "Player.h"
//
//int main() //main method of driver to display functionality of Player being implemented
//{
// //Arbitrary list of territories being added (to display toDefend method functionality)
// vector<Territory*> t1;
// Territory *dt1 = new Territory(1, "France", 1, 0);
// Territory *dt2 = new Territory(2, "Germany", 1, 0);
// t1.push_back(dt1);
// t1.push_back(dt2);
//
// //Arbitrary list of cards being added to the hand
// vector<Card*> h1;
// Card *c1 = new Card("Airlift");
// Card *c2 = new Card("Diplomacy");
// h1.push_back(c1);
// h1.push_back(c2);
//
// //Creation of orderList to add arbitrary orders
// vector<Order*> o1;
//
// Player* p1 = new Player("player", 5, t1, h1, o1); //Creation of new Player using aforementioned parameters
// (*p1).issueOrder();
// (*p1).issueOrder();
//
// cout << "Current order list: " << endl;
// (*p1).printOrderList(); //displaying current orderList
// cout << endl;
//
// cout << "List of territories to defend: " << endl;
// (*p1).toDefend(); //displaying arbitrary list of territories to defend
// cout << endl;
//
// cout << "List of territories to attack: " << endl;
// (*p1).toAttack(); //displaying arbitrary list of territories to attack
// cout << endl;
//
// cout << "Current hand of cards: " << endl;
// (*p1).printHand(); //displaying current hand of cards
// cout << endl;
//}
//