载入中...
搜索中...
未找到
eve::map::FlowField类 参考
Integration + direction field for group pathfinding to a single goal. nextX/nextY point to the neighboring cell with lower cost (toward goal). At the goal, next points to itself. 更多...
#include <FlowField.h>
Public 成员函数 | |
| void | clear () |
| void | resize (int width, int height) |
| int | getWidth () const |
| int | getHeight () const |
| int | getGoalX () const |
| int | getGoalY () const |
| void | setGoal (int x, int y) |
| float | costAt (int x, int y) const |
| void | setCost (int x, int y, float cost) |
| int | nextX (int x, int y) const |
| int | nextY (int x, int y) const |
| void | setNext (int x, int y, int nx, int ny) |
| bool | isReachable (int x, int y) const |
静态 Public 属性 | |
| static constexpr float | kUnreachable = std::numeric_limits<float>::infinity() |
详细描述
Integration + direction field for group pathfinding to a single goal. nextX/nextY point to the neighboring cell with lower cost (toward goal). At the goal, next points to itself.
在文件 FlowField.h 第 13 行定义.
成员函数说明
◆ clear()
| void eve::map::FlowField::clear | ( | ) |
在文件 Pathfinder.cpp 第 613 行定义.
◆ costAt()
| float eve::map::FlowField::costAt | ( | int | x, |
| int | y | ||
| ) | const |
◆ getGoalX()
|
inline |
在文件 FlowField.h 第 22 行定义.
被这些函数引用 eve::map::Pathfinder::followFlow().
◆ getGoalY()
|
inline |
在文件 FlowField.h 第 23 行定义.
被这些函数引用 eve::map::Pathfinder::followFlow().
◆ getHeight()
|
inline |
在文件 FlowField.h 第 20 行定义.
◆ getWidth()
|
inline |
在文件 FlowField.h 第 19 行定义.
◆ isReachable()
| bool eve::map::FlowField::isReachable | ( | int | x, |
| int | y | ||
| ) | const |
◆ nextX()
| int eve::map::FlowField::nextX | ( | int | x, |
| int | y | ||
| ) | const |
◆ nextY()
| int eve::map::FlowField::nextY | ( | int | x, |
| int | y | ||
| ) | const |
◆ resize()
| void eve::map::FlowField::resize | ( | int | width, |
| int | height | ||
| ) |
◆ setCost()
| void eve::map::FlowField::setCost | ( | int | x, |
| int | y, | ||
| float | cost | ||
| ) |
在文件 Pathfinder.cpp 第 651 行定义.
◆ setGoal()
| void eve::map::FlowField::setGoal | ( | int | x, |
| int | y | ||
| ) |
在文件 Pathfinder.cpp 第 637 行定义.
◆ setNext()
| void eve::map::FlowField::setNext | ( | int | x, |
| int | y, | ||
| int | nx, | ||
| int | ny | ||
| ) |
在文件 Pathfinder.cpp 第 666 行定义.
类成员变量说明
◆ kUnreachable
|
staticconstexpr |
在文件 FlowField.h 第 15 行定义.
该类的文档由以下文件生成:
- src/modules/map/FlowField.h
- src/modules/map/Pathfinder.cpp