#include <astarnode.hpp>
Public Member Functions | |
void | initNode (gamemap::location const &pos, gamemap::location const &dst, double cost, a_star_node *parent, std::set< gamemap::location > const *teleports) |
double | heuristic (const gamemap::location &src, const gamemap::location &dst) |
Public Attributes | |
double | g |
double | h |
gamemap::location | loc |
a_star_node * | nodeParent |
bool | isInCloseList |
Definition at line 22 of file astarnode.hpp.
void a_star_node::initNode | ( | gamemap::location const & | pos, | |
gamemap::location const & | dst, | |||
double | cost, | |||
a_star_node * | parent, | |||
std::set< gamemap::location > const * | teleports | |||
) |
Definition at line 21 of file astarnode.cpp.
References g, h, heuristic(), isInCloseList, loc, and nodeParent.
Referenced by a_star_explore_neighbours(), and a_star_init().
double a_star_node::heuristic | ( | const gamemap::location & | src, | |
const gamemap::location & | dst | |||
) | [inline] |
Definition at line 33 of file astarnode.hpp.
References distance_between().
Referenced by initNode().
double a_star_node::g |
Definition at line 25 of file astarnode.hpp.
Referenced by a_star_explore_neighbours(), a_star_search(), compare_lt_a_star_node(), and initNode().
double a_star_node::h |
Definition at line 25 of file astarnode.hpp.
Referenced by a_star_explore_neighbours(), a_star_init(), compare_lt_a_star_node(), and initNode().
Definition at line 26 of file astarnode.hpp.
Referenced by a_star_explore_neighbours(), a_star_search(), and initNode().
Definition at line 27 of file astarnode.hpp.
Referenced by a_star_explore_neighbours(), a_star_search(), and initNode().
Definition at line 28 of file astarnode.hpp.
Referenced by a_star_explore_neighbours(), a_star_search(), and initNode().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |