A grid that can calculate distances between cells.
More...
#include <distance_grid.h>
A grid that can calculate distances between cells.
◆ background_color_for()
virtual std::uint32_t mazes::distance_grid::background_color_for |
( |
std::shared_ptr< cell > const & | c | ) |
const |
|
overridevirtualnoexcept |
◆ calculate_distances()
void mazes::distance_grid::calculate_distances |
( |
int | start_index, |
|
|
int | end_index ) |
|
noexcept |
Calculates distances for a range of indices.
- Parameters
-
start_index | The starting index of the range (inclusive). |
end_index | The ending index of the range (exclusive). |
◆ contents_of()
virtual std::string mazes::distance_grid::contents_of |
( |
std::shared_ptr< cell > const & | c | ) |
const |
|
overridevirtualnoexcept |
◆ 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: