Commit b62f4b45 authored by Aaron Sturtevant's avatar Aaron Sturtevant
Browse files

t

parent ed59c8d5
#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);
}
\ No newline at end of file
#include <iostream>
#include <string>
using namespace std;
class Boss {
private:
int fight = 10,
flee = 10,
talk = 10,
health = 5;
public:
// Constructor
Boss(int);
// Get Functions
int getFight() { return fight; }
int getFlee() { return flee; }
int getTalk() { return talk; }
int getHealth() { return health; }
// Set Function
void setBossStats(int);
};
\ No newline at end of file
#include <iomanip>
#include <iostream>
#include <stdlib.h>
using namespace std;
class Dungeon {
public:
int roomEncounter;
int floorNum = 1;
int monsterRoll;
int roomCounter = 0;
int rollRoom(int seed);
void dungeonOutput(int encounterNum);
monsterResponse(int encounterNum, string response);
getBoss(int floorNum);
bossResponse(int floorNum, string response);
}
\ No newline at end of file
#include <iostream>
#include <iomanip>
using namespace std;
void outputMenu();
int main() {
//intro menu
outputMenu();
}
void outputMenu() {
cout << "Welcome to Dungen;;The Experience()" << endl;
cout << "-----------------------------------" << endl;
cout << "- (S)tart new game" << endl;
cout << "- (R)esume game" << endl;
cout << "- (Q)uit game" << endl;
cin >> input;
ifstream fin;
fin.open("file.txt");
switch(input) {
case 'S':
//runs game
break;
case 'R':
fin >> seed;
break;
case 'Q':
exit(0);
break;
}
fin.close();
}
\ No newline at end of file
This diff is collapsed.
// Monster.h
class Monster {
public:
int stats[] = new int[];
string name;
int rewards;
/******************************************************************************
*
*
* Header File for the Monster Class
* By: Kameron Kinsey
*
*
*
*
*/
#include "Player.h"
#include <cstdlib>
#include <iostream>
using namespace std;
class Monster {
private:
string waygd = "What are you going to do?"
int fight = 10,
flee = 10,
talk = 10,
health = 1;
public:
// Constructor
Monster(int);
// Get Functions
int getFight() { return fight; }
int getFlee() { return flee; }
int getTalk() { return talk; }
int getHealth() { return health; }
string getWaygd() { return waygd; }
// Set Function
void setMonsterStats(int);
};
\ No newline at end of file
cptr142_group_project @ 3d35e95f
Subproject commit 3d35e95f139392583569996caab51f71f12dcd54
......@@ -54,5 +54,9 @@ class Item{
//removes item from inventory. May not implement.
//loseItem(string lootName, int lootFight, int lootFlee, int lootTalk);
};
<<<<<<< HEAD
=======
>>>>>>> b98efe0e5646456c884e1f718a3cc4e946974b18
#endif // ITEM_H
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment