类 | |
| struct | GenerateSettings |
| GenerateSettings public API. 更多... | |
函数 | |
| Result< Grid2D > | generate (std::string_view operation, const GenerateSettings &settings) |
| Generate. | |
| Result< Grid2D > | select (const Grid2D &input, std::string_view operation, int mode, int count, float weight, std::uint64_t seed, std::string_view rule) |
| Select. | |
| Result< Grid2D > | findPath (const Grid2D &navigation, const Grid2D &starts, const Grid2D &targets, int semantic) |
| Finds path. | |
函数说明
◆ findPath()
| Result< Grid2D > eve::procgen::gridgraph::findPath | ( | const Grid2D & | navigation, |
| const Grid2D & | starts, | ||
| const Grid2D & | targets, | ||
| int | semantic | ||
| ) |
Finds path.
在文件 GridGraphAlgorithms.cpp 第 294 行定义.
引用了 cells, current, d, dx, dy, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::Grid2D::getHeight(), eve::procgen::Grid2D::getWidth(), height, eve::InvalidArgument, nx, ny, occupied, pending, previous, eve::procgen::Grid2D::resize(), semantic, eve::procgen::Grid2D::setCell(), start, eve::Result< T >::success(), width, x , 以及 y.
◆ generate()
| Result< Grid2D > eve::procgen::gridgraph::generate | ( | std::string_view | operation, |
| const GenerateSettings & | settings | ||
| ) |
Generate.
在文件 GridGraphAlgorithms.cpp 第 154 行定义.
引用了 cx, cy, eve::Diagnostic::error(), eve::Result< T >::failure(), inside, eve::InvalidArgument, operation, point, radius, settings, spacing, eve::Result< T >::success(), x , 以及 y.
◆ select()
| Result< Grid2D > eve::procgen::gridgraph::select | ( | const Grid2D & | input, |
| std::string_view | operation, | ||
| int | mode, | ||
| int | count, | ||
| float | weight, | ||
| std::uint64_t | seed, | ||
| std::string_view | rule | ||
| ) |
Select.
在文件 GridGraphAlgorithms.cpp 第 216 行定义.
引用了 active, border, cells, count, d, dx, dy, eve::Diagnostic::error(), eve::Result< T >::failure(), input, eve::InvalidArgument, island, occupied, operation, ox, oy, point, eve::procgen::Grid2D::resize(), seed, eve::procgen::Grid2D::setCell(), eve::Result< T >::success(), sx, sy, weight, x , 以及 y.