载入中...
搜索中...
未找到
Cell-graph search: the bucket-list frontier, pathfinding and visibility. 更多...
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::hexmap |
函数 | |
| bool | eve::hexmap::isValidDestination (const HexMap &map, HexCoordinates coordinates, const HexOccupancyQuery &occupied={}) |
| Whether an actor may occupy a cell. | |
| std::int32_t | eve::hexmap::moveCost (const HexMap &map, HexCoordinates from, HexCoordinates to, HexDirection direction, const HexOccupancyQuery &occupied={}) |
| Cost of moving between two adjacent cells. | |
| Result< HexPath > | eve::hexmap::findPath (const HexMap &map, HexSearchContext &scratch, HexCoordinates from, HexCoordinates to, const HexMoveRules &rules, const HexOccupancyQuery &occupied={}) |
| Finds the cheapest path between two cells. | |
| Result< void > | eve::hexmap::collectVisibleCells (const HexMap &map, HexSearchContext &scratch, HexCoordinates from, std::int32_t range, std::vector< std::int32_t > &out) |
Collects every cell visible from from within range. | |
详细描述
Cell-graph search: the bucket-list frontier, pathfinding and visibility.
在文件 HexSearch.cpp 中定义.