a_star_node Struct Reference

#include <astarnode.hpp>

Collaboration diagram for a_star_node:

Collaboration graph
[legend]

List of all members.

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_nodenodeParent
bool isInCloseList


Detailed Description

Definition at line 22 of file astarnode.hpp.


Member Function Documentation

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().


Member Data Documentation

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().


The documentation for this struct was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs