Maze Builder Docs 8.8.13
Loading...
Searching...
No Matches
barriers.h
Go to the documentation of this file.
1#ifndef BARRIERS_H
2#define BARRIERS_H
3
4#include <string_view>
5#include <type_traits>
6
9namespace mazes
10{
11 constexpr std::string_view HORIZONTAL_BARRIER_UC{"\u2500"};
12 constexpr std::string_view VERTICAL_BARRIER_UC{"\u2502"};
13 constexpr std::string_view CORNER_BARRIER_UC{"\u253C"};
14 constexpr std::string_view SINGLE_SPACE_BARRIER_UC{"\u0020"};
15
17 enum class Barrier : char
18 {
19 HORIZONTAL = '-',
20
21 VERTICAL = '|',
22
23 CORNER = '+',
24
25 SINGLE_SPACE = ' '
26 };
27
29 enum class Direction : int
30 {
31 NORTH = 0,
32 SOUTH = 1,
33 EAST = 2,
34 WEST = 3
35 };
36} // namespace mazes
37
38#endif // BARRIERS_H
Direction
Directional neighbors for grid topology.
Definition barriers.h:30
Barrier
Character representations of walls and barriers in the maze.
Definition barriers.h:18