Player.h 765 Bytes
Newer Older
Kameron Kinsey's avatar
Kameron Kinsey committed
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
// Header File for the Player Class

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

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