From f52f627b204fe8b1b9a2806fba16a7acd2bdb6e7 Mon Sep 17 00:00:00 2001 From: Aaron S Date: Mon, 19 Mar 2018 13:48:11 +0000 Subject: [PATCH] commiting --- Boss.h | 6 +++++- Main.cpp | 41 ----------------------------------------- Monster.h | 6 +++++- Player.h | 7 ++++++- 4 files changed, 16 insertions(+), 44 deletions(-) delete mode 100644 Main.cpp diff --git a/Boss.h b/Boss.h index b00f050..035ec4f 100644 --- a/Boss.h +++ b/Boss.h @@ -8,6 +8,8 @@ * * */ +#ifndef BOSS_H +#define BOSS_H #include #include @@ -27,4 +29,6 @@ class Boss { void bossResponse(int floorNum, int playerWon); void giveBossItems(int floorNum, Inventory inventory); -}; \ No newline at end of file +}; + +#endif \ No newline at end of file diff --git a/Main.cpp b/Main.cpp deleted file mode 100644 index 76e0840..0000000 --- a/Main.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include - -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 diff --git a/Monster.h b/Monster.h index 857d5ef..67bfb4b 100644 --- a/Monster.h +++ b/Monster.h @@ -8,6 +8,8 @@ * * */ +#ifndef MONSTER_H +#define MONSTER_H #include "Item.h" #include @@ -30,4 +32,6 @@ class Monster { void monsterResponse(int encounterNum, int playerWon); -}; \ No newline at end of file +}; + +#endif \ No newline at end of file diff --git a/Player.h b/Player.h index 8e66335..d063c62 100644 --- a/Player.h +++ b/Player.h @@ -9,6 +9,9 @@ * */ +#ifndef PLAYER_H +#define PLAYER_H + #include #include using namespace std; @@ -35,4 +38,6 @@ class Player { // Check Victory bool checkVictory(bool win); -}; \ No newline at end of file +}; + +#endif \ No newline at end of file -- GitLab