Commit 1dabbd80 authored by Aaron Sturtevant's avatar Aaron Sturtevant

m

Merge branch 'master' of gitlab.cs.wallawalla.edu:sturaa/cptr142_group_project
parents 6c1f0a9e bb1b5454
......@@ -19,21 +19,16 @@ void Boss::summonBoss(int floorNum) {
switch(floorNum) {
case 1:
cout << "A Minotaur stands before you, Warhammer raised and nose pierced" << endl;
setFight(20);
setTalk(15);
case 2:
cout << "The Pop-Culture representation of Death Itself stands before you, scythe poised and hungry" << endl;
setFight(17);
setTalk(17);
case 3:
cout << "A Dragon stands before you. C'mon, you had to see this coming" << endl;
setFight(15);
setTalk(20);
case 4:
cout << "A hooded figure stands before you, dice in one hand, and a rulebook in the other. " << endl
<< "You cannot escape the power of the Dungen Master." << endl;
setFight(20);
setTalk(20);
}
}
......
......@@ -15,7 +15,8 @@ using namespace std;
class Boss {
private:
int fight, talk;
int fight;
int talk;
public:
// Get Functions
int getFight(int floorNum);
......
......@@ -16,125 +16,267 @@ using namespace std;
Monster::Monster(int seed) {
Monster::summon(int encounterNum) {
// Monster monster;
srand(seed);
switch(rand() % 20) {
switch(encounterNum) {
case 1:
cout << "A Toilet stands before you, its porcelin shining in the dull light, containing questionable water" << endl;
setFight(15);
setTalk(5);
case 2:
cout << "A Green Bar is before you, you're not sure why, but you feel like you've just solved a math problem" << endl;
setFight(15);
setTalk(5);
case 3:
cout << "A Potato stands before you on a table, its eyes stare into your soul, or just behind you, it has a lazy eye" << endl;
setFight(5);
setTalk(15);
case 4:
cout << "A German soldier of the Third Reich stands before you, arm straight in the air" << endl;
setFight(10);
setTalk(10);
case 5:
cout << "A plate of Waffles sit on a table, nothing wrong here, just some Waffles, hangin' out, bein' Waffles" << endl;
setFight(5);
setTalk(15);
case 6:
cout << "A Beautiful Girl is standing before you, wait what's that poking out of her skirt? Probably just a dagger." << endl;
setFight(5);
setTalk(15);
case 7:
cout << "The Game Devs stand before you, they hope you're liking this game, they put some hard work into it. Heck, I had to create 150 Unique encounters" << endl;
setFight(10);
setTalk(10);
case 8:
cout << "A Human stands before you, what? Not everything in this list is Shakespeare" << endl;
setFight(12);
setTalk(12);
case 9:
cout << "The Ugliest thing you've ever seen stan--oh wait that's just a mirror. Fight me, I dare you" << endl;
setFight(12);
setTalk(12);
case 10:
cout << "A Door hangs before you, the pressure to conform to society's unrealistic standard for doors was too much. It will be missed" << endl;
setFight(5);
setTalk(15);
case 11:
cout << "A Princess stands before you, but she's not why you're here, don't get distracted by needless side-quests, you've got a job to do!" << endl;
setFight(10);
setTalk(15);
case 12:
cout << "EA stands before you, you must pay $69.99 to access the rest of this game" << endl;
setFight(10);
setTalk(15);
case 13:
cout << "A Ghost stands before you, wait, that's just Carl in a bedsheet" << endl;
setFight(10);
setFight(10);
case 14:
cout << "A Textbook lies before you, haunting you about what you should be studying instead of playing this game" << endl;
setFight(10);
setTalk(10);
case 15:
cout << "A Hobo stands before you, asking for some change, loose change, clothes change, societal change, anything. The Hobo is pretty bored with current events" << endl;
setFight(10);
setTalk(15);
case 16:
cout << "1 Direction stands before you, they deserve this, we won't tell anyone" << endl;
setFight(5);
setTalk(15);
case 17:
cout << "A Doll stands before you, porcelain eyes staring into your soul" << endl;
setFight(5);
setTalk(10);
case 18:
cout << "A Real Slim Shady Gentleman sits before you, he stands up at your approach" << endl;
setFight(10);
setTalk(15);
case 19:
cout << "Depression hits you as soon as you enter the room, this will be an uphill battle" << endl;
setFight(15);
setTalk(5);
case 20:
cout << "The Color Blue stands before you. . . I don’t know ok? I lost my sanity 10 encounters back so here. Fight against, Flee from, or Talk to the Color Blue" << endl;
setFight(10);
setTalk(10);
}
}
void Monster::setMonsterStats(int seed) {
srand(seed);
int Monster::setFight(int encounterNum) {
// Set Fight Stat and Modifier
int fight = getFight();
fight = rand() % 20;
setFight(fight);
switch (encounterNum) {
case 1:
// Toilet
return fight = 15;
case 2:
// Green Bar
return fight = 15;
case 3:
// Potato
return fight = 5;
case 4:
// Nazi
return fight = 10;
case 5:
// Waffles
return fight = 5;
case 6:
// Not so Obvious Trap
return fight = 5);
case 7:
// Game Devs
return fight = 10;
case 8:
// Human
return fight = 12;
case 9:
// Mirror
return fight = 12;
case 10:
// Door
return fight = 5;
case 11:
// Princess
return fight = 10;
case 12:
// EA
return fight = 10;
case 13:
// Ghost
return fight = 10;
case 14:
// Textbook
return fight = 10;
case 15:
// Hobo
return fight = 10;
case 16:
// 1 Direction
return fight = 5;
case 17:
// Doll
return fight = 5;
case 18:
// Real Slim Shady
return fight = 10;
case 19:
// Depression
return fight = 15;
case 20:
// Blue
return fight = 10;
}
}
// Set Talk Stat and Modifier
int talk = getTalk();
talk = rand() % 20;
setTalk(talk);
int Monster::setTalk(int encounterNum) {
switch (encounterNum) {
case 1:
// Toilet
return talk = 5;
case 2:
// Green Bar
return talk = 5;
case 3:
// Potato
return talk = 15;
case 4:
// Nazi
return talk = 10;
case 5:
// Waffles
return talk = 15;
case 6:
// Not so Obvious Trap
return talk = 15);
case 7:
// Game Devs
return talk = 10;
case 8:
// Human
return talk = 12;
case 9:
// Mirror
return talk = 12;
case 10:
// Door
return talk = 15;
case 11:
// Princess
return talk = 10;
case 12:
// EA
return talk = 15;
case 13:
// Ghost
return talk = 10;
case 14:
// Textbook
return talk = 15;
case 15:
// Hobo
return talk = 10;
case 16:
// 1 Direction
return talk = 15;
case 17:
// Doll
return talk = 15;
case 18:
// Real Slim Shady
return talk = 15;
case 19:
// Depression
return talk = 10;
case 20:
// Blue
return talk = 10;
}
int main() {
Monster monster(5);
void Monster::giveItems(int encounterNum, Inventory inventory) {
return 0;
}
\ No newline at end of file
switch(encounterNum) {
case 1:
// Toilet
inventory.gainNewItem("Porcelin Throne", 1, 1);
case 2:
// Green Bar
inventory.gainNewItem("Sense of Accomplishment", 2, -1);
case 3:
// Potato
inventory.gainNewItem("Eye of Potato", -1, 2);
case 4:
// Nazi
inventory.gainNewItem("Nazi Uniform", 3, -10);
case 5:
// Waffles
inventory.gainNewItem("Syrup Bottle", -2, 3);
case 6:
// Not so Obvious Trap
inventory.gainNewItem("Mousetrap", 3, 1);
case 7:
// Game Devs
inventory.gainNewItem("Sanity", -2, 4);
case 8:
// Human
inventory.gainNewItem("The Right to Bear Arms", 5, -5);
case 9:
// Mirror
inventory.gainNewItem("Silver Mirror", -3, 4);
case 10:
// Door
inventory.gainNewItem("Golden Key", -1, 3);
case 11:
// Princess
inventory.gainNewItem("Regal Tiara", -3, 5);
case 12:
// EA
inventory.gainNewItem("Deep Pockets", -3, 5);
case 13:
// Ghost
inventory.gainNewItem("Sheet", 1, 2);
case 14:
// Textbook
inventory.gainNewItem("Textbook", 5, 0);
case 15:
// Hobo
case 16:
cout << "1 Direction stands before you, they deserve this, we won't tell anyone" << endl;
case 17:
cout << "A Doll stands before you, porcelain eyes staring into your soul" << endl;
case 18:
cout << "A Real Slim Shady Gentleman sits before you, he stands up at your approach" << endl;
case 19:
cout << "Depression hits you as soon as you enter the room, this will be an uphill battle" << endl;
case 20:
cout << "The Color Blue stands before you. . . I don’t know ok? I lost my sanity 10 encounters back so here. Fight against, Flee from, or Talk to the Color Blue" << endl;
}
}
......@@ -18,18 +18,12 @@ class Monster {
private:
int fight, talk;
public:
// Constructor
Monster(int);
// Get Functions
int getFight() { return fight; }
int getTalk() { return talk; }
// Set Function
void setFight(int Fight) { fight = Fight; }
void setTalk(int Talk) { talk = Talk; }
void setMonsterStats(int);
int getFight(int encounterNum);
int getTalk(int encounterNum);
// Other Functions
summon(int encounterNum);
};
\ No newline at end of file
......@@ -15,13 +15,12 @@ using namespace std;
class Player {
private:
int fight = 10,
talk = 10,
string playerName;
int fight;
int talk;
string playerName;
public:
//
int health = 100;
// Get Functions
int getFight() { return fight; }
int getTalk() { return talk; }
......
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