Commit db0edbd5 authored by Kameron Kinsey's avatar Kameron Kinsey

Initialize repository

parent 7dd1ec5e
// Random Stat Generator and Player Class
#include "Player.h"
#include <cstring>
#include <cstdlib>
#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; }
};
int main() {
......@@ -35,8 +15,6 @@ int main() {
Player player;
string name = player.getPlayerName();
// Enter Seed
//cin >> seed;
// Set Stats
player.setStats(seed);
......
// 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; }
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment