-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaze.h
More file actions
43 lines (33 loc) · 808 Bytes
/
Copy pathMaze.h
File metadata and controls
43 lines (33 loc) · 808 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
#if !defined (MAZE_H)
#define MAZE_H
#include "Matrix.h"
using CSC2110::Matrix;
#include "Update.h"
#include "Drawable.h"
#include "StackLinked.h"
#include "Cell.h"
class Maze : public Drawable
{
private:
Matrix* maze;
Update* gui;
int width;
int height;
bool traverse();
Cell* processBackTrack(StackLinked<Cell>* stack);
void processSolution(StackLinked<Cell>* stack);
bool isSolved(Cell* curr_cell, StackLinked<Cell>* stack);
int WALL;
int SPACE;
int TRIED;
int BACKTRACK;
int PATH;
public:
Maze(Matrix* maze);
virtual ~Maze();
bool solve();
void addListener(Update* gui);
virtual void draw(wxDC& dc, int width, int height);
virtual void mouseClicked(int x, int y);
};
#endif