Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MAZEH
- #define MAZEH
- #include <vector>
- #include <utility> // std::pair
- class Maze{
- public:
- static const char WALL, PATH, END, START, VISITED;
- static const unsigned int SIZE;
- void Create_maze(unsigned int row, unsigned int col);
- void Generate_maze(std::pair<unsigned int, unsigned int> CurrentCell);
- bool Walls_Intact(std::pair<unsigned int, unsigned int> CurrentCell);
- std::vector< std::pair<unsigned int, unsigned int> > Find_neighbours(std::pair<unsigned int, unsigned int> CurrentCell);
- std::vector<unsigned int> Check_direction(unsigned int x, unsigned int y, std::vector<std::pair <unsigned int, unsigned int> > v);
- char setPosition(int x, int y, char val);
- void Print_maze() const;
- std::vector< std::pair<unsigned int, unsigned int> > NeighboursToVisit;
- private:
- void Crush_wall(std::pair<unsigned int, unsigned int> CurrentCell, int dir);
- std::vector< std::vector<char> > Map;
- };
- #endif
- /* MAZE.H */
Advertisement
Add Comment
Please, Sign In to add comment