-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.hpp
63 lines (47 loc) · 1.56 KB
/
Player.hpp
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
//Kanellaki Maria Anna - 1115201400060
//Matanis Panagiotis - 1115201400297
#ifndef PLAYER_H
#define PLAYER_H
#include <vector>
#include "Stronghold.hpp"
#include "FateDeck.hpp"
#include "DynastyDeck.hpp"
#include "Holding.hpp"
#include "Personality.hpp"
class Player { //represents player / dynast
int honour;
Stronghold * stronghold = nullptr;
int maxCards;
int minCards;
int numberOfProvinces;
int maxHand;
FateDeck fateDeck; //the green draw deck
DynastyDeck dynDeck; //the black draw deck
DynastyDeck provinces;
Deck hand;
DynastyDeck holdings;
DynastyDeck army;
//vector with names for strongholds
vector<string> names = {"Golden Plains Outpost", "High House of Light", "Closed Shell Castle", "Mountain's Anvil Castle", "Seven Strings Keep", "City of the Open Hand", "Shiro City", "Red Fort"};
public:
bool operator==(const Player &p) const{ return p.stronghold->getName() == stronghold->getName(); } //helps c++ find() to know how to search for player
Player(int, int);
Stronghold * GenerateRandomStronghold();
void PrintPlayerStats();
void untapEverything();
void drawFateCard();
void revealProvinces();
void equipCards();
void buyCards();
void prepareForBattle();
void Attack(Player *, string);
void discardSurplusFateCards();
~Player();
int getHonour() const;
int getNumberOfProvinces() const;
Deck &getHand();
DynastyDeck &getProvinces();
Stronghold *getStronghold() const;
DynastyDeck &getArmy();
};
#endif