-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExec.h
More file actions
50 lines (43 loc) · 956 Bytes
/
Exec.h
File metadata and controls
50 lines (43 loc) · 956 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
47
48
49
50
/* @Author: Anna Fritz
* @File: main.cpp
* @Date: March 27, 2019
* @Brief: Main, interacts with command line
*/
#ifndef EXEC_H
#define EXEC_H
#include "MazeReader.h"
#include "MazeWalker.h"
class Exec
{
public:
/**
* @pre A file name is passed in via the command line
* @post the file is open and a Maze Reader is created
*/
Exec(string filename);
/**
* @post Maze Walker is created
* @post the Maze walker is filled with rows and columns
*/
void readingMaze();
/**
* @post Maze is recursed with backtracking
* @post If exit is found, it is printed
*/
void goingThroughMaze();
/**
* @post The maze is read (called readingMaze)
* @post The maze is traversed (called goingThroughMaze)
*/
void run();
private:
string m_filename;
MazeReader* m_mazeRead;
MazeWalker* m_mazeWalk;
int m_numRow;
int m_numCol;
int m_startCol;
int m_startRow;
char** m_maze;
};
#endif