Player.h 857 Bytes
Newer Older
Kameron Kinsey's avatar
Kameron Kinsey committed
1
2
3
4
5
6
7
8
9
10
/******************************************************************************
 * 
 *
 *  Header File for the Player Class
 *  By: Kameron Kinsey
 *
 *
 *
 *
 */ 
Kameron Kinsey's avatar
Kameron Kinsey committed
11
12
13
14
15
16
17
18
19
20
21

#include <cstring>
#include <iostream>
using namespace std;

class Player {
    private:
        int fight = 10,
            talk = 10,
            string playerName;
    public:
Kameron Kinsey's avatar
Kameron Kinsey committed
22
    int health = 100;
Kameron Kinsey's avatar
Kameron Kinsey committed
23
24
25
26
27
28
29
    // Get Functions
        int getFight() { return fight; }
        int getTalk() { return talk; }
        string getPlayerName() { return playerName; }
    
    // Set Functions
        void setStats(int);
Kameron Kinsey's avatar
Kameron Kinsey committed
30
31
32
33
        void setFight(int Fight) { fight = Fight; }
        void setTalk(int Talk) { talk = Talk; }
        void setPlayerName(string name) { playerName = name; }
        void doDamage(int health) { health - 5; }
Kameron Kinsey's avatar
Kameron Kinsey committed
34
35
36
37
        
    // Check Victory
        bool checkVictory(bool win);
};