载入中...
搜索中...
未找到
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.h13 行定义.

成员函数说明

◆ clear()

void eve::map::FlowField::clear ( )

在文件 Pathfinder.cpp613 行定义.

◆ costAt()

float eve::map::FlowField::costAt ( int  x,
int  y 
) const

在文件 Pathfinder.cpp646 行定义.

引用了 x , 以及 y.

被这些函数引用 eve::map::Pathfinder::followFlow().

◆ getGoalX()

int eve::map::FlowField::getGoalX ( ) const
inline

在文件 FlowField.h22 行定义.

被这些函数引用 eve::map::Pathfinder::followFlow().

◆ getGoalY()

int eve::map::FlowField::getGoalY ( ) const
inline

在文件 FlowField.h23 行定义.

被这些函数引用 eve::map::Pathfinder::followFlow().

◆ getHeight()

int eve::map::FlowField::getHeight ( ) const
inline

在文件 FlowField.h20 行定义.

◆ getWidth()

int eve::map::FlowField::getWidth ( ) const
inline

在文件 FlowField.h19 行定义.

◆ isReachable()

bool eve::map::FlowField::isReachable ( int  x,
int  y 
) const

在文件 Pathfinder.cpp673 行定义.

引用了 c, x , 以及 y.

被这些函数引用 eve::map::Pathfinder::followFlow().

◆ nextX()

int eve::map::FlowField::nextX ( int  x,
int  y 
) const

在文件 Pathfinder.cpp656 行定义.

引用了 x , 以及 y.

被这些函数引用 eve::map::Pathfinder::followFlow().

◆ nextY()

int eve::map::FlowField::nextY ( int  x,
int  y 
) const

在文件 Pathfinder.cpp661 行定义.

引用了 x , 以及 y.

被这些函数引用 eve::map::Pathfinder::followFlow().

◆ resize()

void eve::map::FlowField::resize ( int  width,
int  height 
)

在文件 Pathfinder.cpp621 行定义.

引用了 height, n, width, x , 以及 y.

◆ setCost()

void eve::map::FlowField::setCost ( int  x,
int  y,
float  cost 
)

在文件 Pathfinder.cpp651 行定义.

引用了 cost, x , 以及 y.

◆ setGoal()

void eve::map::FlowField::setGoal ( int  x,
int  y 
)

在文件 Pathfinder.cpp637 行定义.

引用了 x , 以及 y.

◆ setNext()

void eve::map::FlowField::setNext ( int  x,
int  y,
int  nx,
int  ny 
)

在文件 Pathfinder.cpp666 行定义.

引用了 x , 以及 y.

类成员变量说明

◆ kUnreachable

constexpr float eve::map::FlowField::kUnreachable = std::numeric_limits<float>::infinity()
staticconstexpr

在文件 FlowField.h15 行定义.


该类的文档由以下文件生成: