#include <astarnode.hpp>
Public Member Functions | |
void | resize_IFN (size_t parWidth, size_t parHeight) |
void | clear () |
a_star_node * | getNodeFromLocation (gamemap::location const &loc, bool &isCreated) |
a_star_world () | |
~a_star_world () | |
Private Types | |
typedef std::vector < a_star_node * > | vect_a_star_node |
Private Attributes | |
poss_a_star_node * | pool_ |
vect_a_star_node | vectAStarNode_ |
size_t | width_ |
size_t | nbNode_ |
Classes | |
class | poss_a_star_node |
Definition at line 39 of file astarnode.hpp.
typedef std::vector<a_star_node*> a_star_world::vect_a_star_node [private] |
Definition at line 43 of file astarnode.hpp.
a_star_world::a_star_world | ( | ) |
Definition at line 117 of file astarnode.cpp.
a_star_world::~a_star_world | ( | ) |
void a_star_world::resize_IFN | ( | size_t | parWidth, | |
size_t | parHeight | |||
) |
Definition at line 127 of file astarnode.cpp.
References nbNode_, vectAStarNode_, and width_.
Referenced by a_star_init().
void a_star_world::clear | ( | void | ) |
Definition at line 140 of file astarnode.cpp.
References a_star_world::poss_a_star_node::clear(), nbNode_, pool_, and vectAStarNode_.
Referenced by a_star_search().
a_star_node * a_star_world::getNodeFromLocation | ( | gamemap::location const & | loc, | |
bool & | isCreated | |||
) |
Definition at line 148 of file astarnode.cpp.
References a_star_world::poss_a_star_node::getAStarNode(), nbNode_, pool_, gamemap::location::valid(), vectAStarNode_, width_, gamemap::location::x, and gamemap::location::y.
Referenced by a_star_explore_neighbours(), and a_star_init().
poss_a_star_node* a_star_world::pool_ [private] |
Definition at line 41 of file astarnode.hpp.
Referenced by clear(), getNodeFromLocation(), and ~a_star_world().
vect_a_star_node a_star_world::vectAStarNode_ [private] |
Definition at line 44 of file astarnode.hpp.
Referenced by clear(), getNodeFromLocation(), and resize_IFN().
size_t a_star_world::width_ [private] |
size_t a_star_world::nbNode_ [private] |
Definition at line 45 of file astarnode.hpp.
Referenced by clear(), getNodeFromLocation(), and resize_IFN().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |