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

Boss::Boss(int floorNumber) {
    
Kameron Kinsey's avatar
Kameron Kinsey committed
19
20
    Boss boss;
    
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    switch(floorNumber) {
        case 1:
            cout << "A Minotaur stands before you, Warhammer raised and nose pierced" << endl;
            boss.setBossStats(seed);
            cout << "What are you going to do?" << endl;
        case 2:
            cout << "The Pop-Culture representation of Death Itself stands before you, scythe poised and hungry" << endl;
            boss.setBossStats(seed);
            cout << "What are you going to do?" << endl;
        case 3:
            cout << "A Dragon stands before you. C'mon, you had to see this coming" << endl;
            monster.setStats(seed);
            cout << "What are you going to do?" << endl;
    }
}

void Boss::setBossStats(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);
Kameron Kinsey's avatar
Kameron Kinsey committed
49
50
51
}