Boss.cpp 2.76 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
23
            setFight(20);
            setTalk(15);
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
24
25
        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
26
27
            setFight(17);
            setTalk(17);
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
28
29
        case 3:
            cout << "A Dragon stands before you. C'mon, you had to see this coming" << endl;
Kameron Kinsey's avatar
Kameron Kinsey committed
30
31
32
33
34
35
36
            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);
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
37
38
39
    }
}

Kameron Kinsey's avatar
Kameron Kinsey committed
40
41

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

Kameron Kinsey's avatar
Kameron Kinsey committed
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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
95
        }
Kameron Kinsey's avatar
Kameron Kinsey committed
96
97
    }
}
Kameron Kinsey's avatar
Kameron Kinsey committed
98