/****************************************************************************** * * * Fucnction File for the Boss Class * By: Kameron Kinsey * * * * */ #include "Boss.h" #include #include using namespace std; void Boss::summonBoss(int floorNum) { switch(floorNum) { case 1: cout << "A Minotaur stands before you, Warhammer raised and nose pierced" << endl; case 2: cout << "The Pop-Culture representation of Death Itself stands before you, scythe poised and hungry" << endl; case 3: cout << "A Dragon stands before you. C'mon, you had to see this coming" << endl; 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; } } int Boss::getFight(int floorNum) { switch(floorNum) { case 1: // Minotaur return fight = 20; case 2: // Death return fight = 17; case 3: // Dragon return fight = 15; case 4: // Dungen Master return fight = 20 } } int Boss::getTalk(int floorNum) { switch(floorNum) { case 1: // Minotaur return talk = 15; case 2: // Death return talk = 17; case 3: // Dragon return talk = 20; case 4: // Dungen Master return talk = 20 } } void Boss::bossResponse(int floorNum, int playerWon) { if (playerWon == true) { switch(floorNum) { case 1: // Minotaur cout << "The Minotaur drops its hammer, a bellow escapes its lips as it falls to the floor. Defeated" << endl; case 2: // Death cout << "Death drops its scythe, as it disappears into the Soul Realm. Defeated" << endl; case 3: // Dragon cout << "The Dragon falls in a bout of flame, its fighting 'til its last breath. Defeated" << endl; case 4: // Dungen Master cout << "\"How did you defeat me?\" The Dungen Master exclaims. \"I had everyting prepared with utmost care.\"" << endl << "\"Perfectly laid traps, well executed enemies, but somehow you still beat me.\"" << endl << "\"Take it then, if you are willing to endure the consequences. . .\"" << endl; } } else { switch(floorNum) { case 1: // Minotaur cout << "The Minotaur swings its hammer, it bellows with pleasure at your pain" << endl; case 2: // Death cout << "Death brings your soul closer to the reaping" << endl; case 3: // Dragon cout << "The Dragon lets loose a fountain of flame onto your sorry form" << endl; case 4: // Dungen Master cout << "With a roll of the die and a smirk, you take damage" << endl; } } } void giveBossItems(int floorNum, Inventory inventory) { switch(floorNum) { case 1: // Minotaur inventory.gainNewItem("Cow Hammer", 10, -5); case 2: // Death inventory.gainNewItem("Death Svythe", 7, 7); case 3: // Dragon inventory.gainNewItem("Dragon Heart", 0, 10); case 4: // Dungen Master inventory.gainNewItem("Maguffin of Vague Desireability", 15, 15); } }