Commit 40cf4c88 authored by Kameron Kinsey's avatar Kameron Kinsey

Initialize repository

parent bf95b40a
/*
Random Stat Generator and Player Class
By: Kameron Kinsey
*/
/******************************************************************************
*
*
* Random Stat Generator and Player Class
* By: Kameron Kinsey
*
*
*
*
*/
#include "Player.h"
#include <cstring>
......@@ -71,4 +72,10 @@ void Player::setStats(int seed) {
talk = rand() % 20 + 5;
setTalk(talk);
}
bool Player::checkVictory(bool win) {
if (win == true) {
cout << "Congratulations " << getPlayerName() << " you have retrieved the Maguffin of Vauge Desirability!" << endl;
}
}
\ No newline at end of file
......@@ -25,4 +25,7 @@ class Player {
int setFlee(int Flee) { flee = Flee; }
int setTalk(int Talk) { talk = Talk; }
int setPlayerName(string name) { playerName = name; }
// Check Victory
bool checkVictory(bool win);
};
\ 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