载入中...
搜索中...
未找到
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 ()
 Clears .
 
void resize (int width, int height)
 Resize.
 
int getWidth () const
 Returns the width.
 
int getHeight () const
 Returns the height.
 
int getGoalX () const
 Returns the goal x.
 
int getGoalY () const
 Returns the goal y.
 
void setGoal (int x, int y)
 Sets the goal.
 
float costAt (int x, int y) const
 Cost at.
 
void setCost (int x, int y, float cost)
 Sets the cost.
 
int nextX (int x, int y) const
 Next x.
 
int nextY (int x, int y) const
 Next y.
 
void setNext (int x, int y, int nx, int ny)
 Sets the next.
 
bool isReachable (int x, int y) const
 True when reachable.
 

静态 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 第 15 行定义.

成员函数说明

◆ clear()

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

Clears .

在文件 Pathfinder.cpp 第 668 行定义.

◆ costAt()

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

Cost at.

在文件 Pathfinder.cpp 第 701 行定义.

引用了 index, x , 以及 y.

◆ getGoalX()

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

Returns the goal x.

在文件 FlowField.h 第 29 行定义.

◆ getGoalY()

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

Returns the goal y.

在文件 FlowField.h 第 31 行定义.

◆ getHeight()

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

Returns the height.

在文件 FlowField.h 第 26 行定义.

◆ getWidth()

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

Returns the width.

在文件 FlowField.h 第 24 行定义.

◆ isReachable()

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

True when reachable.

在文件 Pathfinder.cpp 第 728 行定义.

引用了 c, x , 以及 y.

◆ nextX()

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

Next x.

在文件 Pathfinder.cpp 第 711 行定义.

引用了 index, x , 以及 y.

◆ nextY()

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

Next y.

在文件 Pathfinder.cpp 第 716 行定义.

引用了 index, x , 以及 y.

◆ resize()

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

Resize.

在文件 Pathfinder.cpp 第 676 行定义.

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

◆ setCost()

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

Sets the cost.

在文件 Pathfinder.cpp 第 706 行定义.

引用了 cost, index, x , 以及 y.

◆ setGoal()

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

Sets the goal.

在文件 Pathfinder.cpp 第 692 行定义.

引用了 x , 以及 y.

◆ setNext()

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

Sets the next.

在文件 Pathfinder.cpp 第 721 行定义.

引用了 index, nx, ny, x , 以及 y.

类成员变量说明

◆ kUnreachable

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

在文件 FlowField.h 第 17 行定义.


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