-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaze.h
More file actions
46 lines (36 loc) · 691 Bytes
/
maze.h
File metadata and controls
46 lines (36 loc) · 691 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
38
39
40
41
42
43
44
45
46
#ifndef maze_h
#define maze_h
#include<iostream>
#include<sstream>
using namespace std;
#include<vector>
#include "mazeNode.h"
#include "disjointSets.h"
#include "stack.h"
#include "queue.h"
#include<fstream>
#include<ctime>
class maze
{
public:
maze(int size);
maze(vector<mazeNode*>* newMaze);
~maze();
void printMaze();
void printTraversal(stack<int>* Traversal, string method);
stack<int>* bfs();
stack<int>*dfs();
bool connected();
int getRooms();
void fileWrite(string text);
void exportMaze();
private:
bool deadEnd(mazeNode* currNode);
vector<mazeNode*>* mazeRoom;
mazeNode* mazeStart;
int mazeRooms;
int mazeWidth;
ofstream output;
bool large;
};
#endif