Commit f513b03a authored by Aaron Sturtevant's avatar Aaron Sturtevant
Browse files

t

parents b62f4b45 241bed0c
......@@ -37,14 +37,12 @@ int main() {
int health = player.getHealth();
int fight = player.getFight();
int flee = player.getFlee();
int talk = player.getTalk();
cout << name << "'s stats" << endl
<< "========================" << endl
<< "Health: " << health << endl
<< "Fight: " << fight + item.getEquippedFight() << endl
<< "Flee: " << flee + item.getEquippedFlee() << endl
<< "Talk: " << talk + item.getEquippedTalk() << endl
<< "Item: " << item.getEquippedItemName() << endl;
......@@ -68,11 +66,6 @@ void Player::setStats(int seed) {
fight = rand() % 20 + 5;
setFight(fight);
// Set Flee Stat and Modifier
int flee = getFlee();
flee = rand() % 20 + 5;
setFlee(flee);
// Set Talk Stat and Modifier
int talk = getTalk();
talk = rand() % 20 + 5;
......
......@@ -16,14 +16,12 @@ 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; }
......@@ -31,7 +29,6 @@ class Player {
// 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; }
......
Supports Markdown
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