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

commiting

parent 12b485d3
......@@ -8,7 +8,7 @@ using namespace std;
return roll;
}
void Dungeon::dungeonOutput(int encounterNum) {
void Dungeon::getMonster(int encounterNum) {
Monster.summon(encounterNum);
}
......
#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);
};
......@@ -7,11 +7,12 @@ using namespace std;
int main() {
Dungeon dungeon;
Player player1;
Items playerItems;
Monster monsterTable;
bool escalate = false;
Dungeon *dungeonPtr = new Dungeon;
Player *playerPtr = new Player;
Items *items = new Item;
Monster *monsterPtr = new Monster;
bool playerWon = false;
bool playerVictory = false;
// if(check for no save data){
int seed;
......@@ -29,25 +30,27 @@ int main() {
// }else{
while (!playerVictory){
//floor 1-3
//floor 1
while(escalate == false) {
string *response = new string;
if(dungeon.roomCounter % 5 == 0) {
dungeon.getBoss(dungeon.floorNum);
cout << "How do you respond? (Fight, Talk, Or Flee): ";
cin >> response;
dungeon.monsterResponse()
} else {
while(dungeonPtr) {
string *response = new string;
dungeon.roomEncounter = dungeon.rollRoom(seed);
dungeon.dungeonOutput(dungeon.roomEncounter);
if(dungeon.roomCounter % 5 == 0) {
dungeon.getBoss(dungeon.floorNum);
cout << "How do you respond? (Fight, Talk, Or Flee): ";
cin >> response;
dungeon.monsterResponse()
} else {
dungeon.roomEncounter = dungeon.rollRoom(seed);
dungeon.dungeonOutput(dungeon.roomEncounter);
}
}
}
......
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