-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDungeon.h
More file actions
37 lines (32 loc) · 742 Bytes
/
Copy pathDungeon.h
File metadata and controls
37 lines (32 loc) · 742 Bytes
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
#pragma once
#include <vector>
#include <unordered_map>
#include <string>
#include <random>
#include <tuple>
#include "Door.h"
#include "Room.h"
typedef std::tuple<bool, Position> roomResult;
enum Direction
{
NORTH,
SOUTH,
WEST,
EAST
};
class Dungeon
{
private:
bool createRoom(Position, std::string);
bool createDoor(Position&, Position&);
roomResult createStartRoom();
public:
std::unordered_map<std::string, Room> allDungeonRooms;
std::unordered_map<std::string, Door> allDungeonDoors;
Dungeon();
Dungeon(int, int, int, bool, bool);
roomResult createNextRoom(Position, Direction, std::string);
std::vector<Door *> getRoomDoors(Position &);
bool areRoomsConnected(Position &, Position &);
bool roomExists(Position&);
};