Player.h 851 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

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

class Player {
    private:
        int fight = 10,
            talk = 10,
            health = 100;
            string playerName;
    public:
    // Get Functions
        int getFight() { return fight; }
        int getTalk() { return talk; }
        int getHealth() { return health; }
        string getPlayerName() { return playerName; }
    
    // Set Functions
        void setStats(int);
        int setFight(int Fight) { fight = Fight; }
        int setTalk(int Talk) { talk = Talk; }
        int setPlayerName(string name) { playerName = name; }
        
    // Check Victory
        bool checkVictory(bool win);
};