Player.h 869 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 23 24
    // 
        int health = 100;
    
Kameron Kinsey's avatar
Kameron Kinsey committed
25 26 27 28
    // Get Functions
        int getFight() { return fight; }
        int getTalk() { return talk; }
        string getPlayerName() { return playerName; }
Kameron Kinsey's avatar
Kameron Kinsey committed
29
        
Kameron Kinsey's avatar
Kameron Kinsey committed
30 31
    // Set Functions
        void setStats(int);
Kameron Kinsey's avatar
Kameron Kinsey committed
32 33 34
        void setFight(int Fight) { fight = Fight; }
        void setTalk(int Talk) { talk = Talk; }
        void setPlayerName(string name) { playerName = name; }
Kameron Kinsey's avatar
Kameron Kinsey committed
35
        void doDamage() { health -= 5; }
Kameron Kinsey's avatar
Kameron Kinsey committed
36 37 38 39
        
    // Check Victory
        bool checkVictory(bool win);
};