Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDungeons/OpenDungeons
/ setHeuristic
Method
setHeuristic
source/gamemap/GameMap.cpp:112–115 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
110
}
111
112
void setHeuristic(const int& x1, const int& y1, const int& x2, const int& y2)
113
{
114
h = fabs(static_cast<double>(x2 - x1)) + fabs(static_cast<double>(y2 - y1));
115
}
116
117
inline double fCost() const
118
{ return g + h; }
Callers
1
path
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected