Boss.cpp 1.18 KB
Newer Older
Aaron Sturtevant's avatar
t  
Aaron Sturtevant committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "Boss"
#include <string>
#include <iostream>
using namespace std;

Boss::Boss(int floorNumber) {
    
    switch(floorNumber) {
        
        Boss boss;
        
        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 Flee Stat and Modifier
    int flee = getFlee();
    flee = rand() % 20;
    setFlee(flee);
    
    // Set Talk Stat and Modifier
    int talk = getTalk();
    talk = rand() % 20;
    setTalk(talk);
}