-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDungeon.h
55 lines (42 loc) · 1.28 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
50
51
52
53
54
55
#ifndef DUNGEON_H_INCLUDED
#define DUNGEON_H_INCLUDED
#include <iostream>
#include <string>
#include <vector>
#include <exception>
#include "Player.h"
#include "Monster.h"
#include "NPC.h"
#include "Room.h"
#include "Record.h"
#include "Item.h"
using namespace std;
class Dungeon{
private:
Player player;
vector<Room> rooms;
public:
Dungeon();
/* Create a new player, and give him/her basic status */
void createPlayer();
/* Create a map, which include several different rooms */
void createMap();
/* Deal with player's moveing action */
void handleMovement();
/* Deal with player's iteraction with objects in that room */
void handleEvent(Object*);
/* Deal with all game initial setting */
/* Including create player, create map etc */
void startGame();
/* Deal with the player's action */
/* including showing the action list */
/* that player can do at that room */
/* and dealing with player's input */
void chooseAction();
/* Check whether the game should end or not */
/* Including player victory, or he/she dead */
bool checkGameLogic();
/* Deal with the whole game process */
void runDungeon();
};
#endif // DUNGEON_H_INCLUDED