-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDungeon.h
49 lines (45 loc) · 1.06 KB
/
Dungeon.h
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
45
46
47
48
49
#ifndef DUNGEON_H_INCLUDED
#define DUNGEON_H_INCLUDED
#include "Room.h"
#include "Object.h"
#include "Player.h"
#include "Item.h"
#include "NPC.h"
#include "Monster.h"
#include "GameCharacter.h"
#include "Record.h"
#include <vector>
#include <string>
#include <cctype>
using namespace std;
class Dungeon
{
public:
Dungeon(){};
Dungeon(Player p)
{
this->player = p;
}
bool startGame_load();
void createPlayer();
void createMap();
void handleMovement(Room*);
bool handleRetreat();
bool checkMonsterRoom(vector<Object*>);
void chooseAction(int);
bool checkGameLogic();
bool runDungeon();
void printActions(int usedNum, string actions[]);
void enterRoom(Room*);
void handleEmptyRoom(Room*);
void handleChestRoom(Room*);
void handleGhostRoom(Room*);
void handleNPCRoom(Room*);
string Toupper(string);
Room* rooms;
Player player;
Room room[4];//hard coded//
Record record;
bool checkSaveGame = 0;
};
#endif // DUNGEON_H_INCLUDED