Boss.cpp 3.09 KB
Newer Older
Kameron Kinsey's avatar
Kameron Kinsey committed
1
2
3
4
5
6
7
8
9
10
11
/******************************************************************************
 * 
 *
 *  Fucnction File for the Boss Class
 *  By: Kameron Kinsey
 *
 *
 *
 *
 */ 
 
Kameron Kinsey's avatar
Kameron Kinsey committed
12
#include "Boss.h"
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
13
14
15
16
#include <string>
#include <iostream>
using namespace std;

Kameron Kinsey's avatar
Kameron Kinsey committed
17
void Boss::summonBoss(int floorNum) {
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
18
    
Kameron Kinsey's avatar
Kameron Kinsey committed
19
    switch(floorNum) {
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
20
21
        case 1:
            cout << "A Minotaur stands before you, Warhammer raised and nose pierced" << endl;
Kameron Kinsey's avatar
Kameron Kinsey committed
22
            
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
23
24
        case 2:
            cout << "The Pop-Culture representation of Death Itself stands before you, scythe poised and hungry" << endl;
Kameron Kinsey's avatar
Kameron Kinsey committed
25
            
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
26
27
        case 3:
            cout << "A Dragon stands before you. C'mon, you had to see this coming" << endl;
Kameron Kinsey's avatar
Kameron Kinsey committed
28
            
Kameron Kinsey's avatar
Kameron Kinsey committed
29
30
31
        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;
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
32
33
34
    }
}

Kameron Kinsey's avatar
Kameron Kinsey committed
35
36

int Boss::getFight(int floorNum) {
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
37
    
Kameron Kinsey's avatar
Kameron Kinsey committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
    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) {
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
55
    
Kameron Kinsey's avatar
Kameron Kinsey committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
    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
    }
Kameron Kinsey's avatar
Kameron Kinsey committed
70
71
}

Kameron Kinsey's avatar
Kameron Kinsey committed
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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;
Kameron Kinsey's avatar
Kameron Kinsey committed
90
        }
Kameron Kinsey's avatar
Kameron Kinsey committed
91
92
    }
}
Kameron Kinsey's avatar
Kameron Kinsey committed
93

Kameron Kinsey's avatar
Kameron Kinsey committed
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
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);
    }
}