Commit 573ab858 authored by Kameron Kinsey's avatar Kameron Kinsey
Browse files

Initialize repository

parent 8fe77b0a
#include "Boss"
#include <string>
#include <iostream>
using namespace std;
Boss::Boss(int floorNumber) {
switch(floorNumber) {
Boss boss;
case 1:
cout << "A Minotaur stands before you, Warhammer raised and nose pierced" << endl;
boss.setBossStats(seed);
cout << "What are you going to do?" << endl;
case 2:
cout << "The Pop-Culture representation of Death Itself stands before you, scythe poised and hungry" << endl;
boss.setBossStats(seed);
cout << "What are you going to do?" << endl;
case 3:
cout << "A Dragon stands before you. C'mon, you had to see this coming" << endl;
monster.setStats(seed);
cout << "What are you going to do?" << endl;
}
}
void Boss::setBossStats(int seed) {
srand(seed);
// Set Fight Stat and Modifier
int fight = getFight();
fight = rand() % 20;
setFight(fight);
// Set Flee Stat and Modifier
int flee = getFlee();
flee = rand() % 20;
setFlee(flee);
// Set Talk Stat and Modifier
int talk = getTalk();
talk = rand() % 20;
setTalk(talk);
}
\ No newline at end of file
#include <iostream>
#include <string>
using namespace std;
class Boss {
private:
public:
Boss(int);
void setBossStats(int);
};
\ No newline at end of file
......@@ -17,6 +17,9 @@ using namespace std;
Monster::Monster(int seed) {
Monster monster;
srand(seed)
switch(rand() % 147) {
......
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