◆ colored_grid()
mazes::colored_grid::colored_grid |
( |
unsigned int | width = 1u, |
|
|
unsigned int | length = 1u, |
|
|
unsigned int | levels = 1u ) |
|
explicit |
Constructs a colored grid with specified dimensions.
- Parameters
-
width | The width of the grid. Defaults to 1. |
length | The length of the grid. Defaults to 1. |
levels | The number of levels in the grid. Defaults to 1. |
◆ background_color_for()
virtual std::uint32_t mazes::colored_grid::background_color_for |
( |
const std::shared_ptr< cell > & | c | ) |
const |
|
overridevirtualnoexcept |
Retrieves the background color for a given cell, if available.
- Parameters
-
c | A shared pointer to the cell for which the background color is to be retrieved. |
- Returns
- An 32-bit unsigned integer containing the background color
Implements mazes::grid_interface.
◆ contents_of()
virtual std::string mazes::colored_grid::contents_of |
( |
const std::shared_ptr< cell > & | c | ) |
const |
|
overridevirtualnoexcept |
Retrieves the contents of a given cell, if available.
- Parameters
-
c | A shared pointer to the cell whose contents are to be retrieved. |
- Returns
- If the cell has no contents, the contents are considered empty
Implements mazes::grid_interface.
◆ operations() [1/2]
Get access to const grid operations interface.
- Returns
- A const reference to the grid operations interface
Implements mazes::grid_interface.
◆ operations() [2/2]
Get access to grid operations interface.
- Returns
- A reference to the grid operations interface
Implements mazes::grid_interface.
The documentation for this class was generated from the following file: