diff --git a/Monster.cpp b/Monster.cpp index 757632791357545fb3735f7ef09070f60ee49e44..3e2ea8a0e77df7f2bcd2016ab26e5c2480dbd391 100644 --- a/Monster.cpp +++ b/Monster.cpp @@ -16,125 +16,200 @@ 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); - - // Set Fight Stat and Modifier - int fight = getFight(); - fight = rand() % 20; - setFight(fight); - - // Set Talk Stat and Modifier - int talk = getTalk(); - talk = rand() % 20; - setTalk(talk); +int Monster::setFight(int encounterNum) { + 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; + } } - - - -int main() { - - Monster monster(5); - - - - - +int Monster::setTalk(int encounterNum) { - - return 0; + 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; } \ No newline at end of file