-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
48 lines (37 loc) · 906 Bytes
/
Player.h
File metadata and controls
48 lines (37 loc) · 906 Bytes
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
//Player.h
// CSCI 1300 Spring 2022
// Author: Matthew Cerza
// Recitation: 202 – Alex Ray
// Project 3
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include <vector>
#include "Card.h"
using namespace std;
class Player{
private:
//the "hand" of cards/creatures following the player
vector<Card> deck;
vector<Card> hand;
string name;
public:
//constructors
Player();
Player(string givenName);
//getters and setters
vector <Card> getHand();
vector<Card> getDeck();
void setName(string givenName);
string getName();
void addCardDeck(Card givenCard);
void addCardHand(Card givenCard);
int removeCardDeck(int givenIndex);
int removeCardHand(int givenIndex);
void printDeck();
void printHand();
void clearHand();
void campHealthBuff(int deckIndex);
void campAttackBuff(int deckIndex);
};
#endif