#include <Astar.h>
Inheritance diagram for Astar:


Public Member Functions | |
| Astar () | |
| virtual int | NewPath (Tile_coord s, Tile_coord d, Pathfinder_client *client) |
| virtual int | GetNextStep (Tile_coord &n, bool &done) |
| virtual int | set_backwards () |
| virtual int | following_smart_path () |
| virtual int | get_num_steps () |
| virtual | ~Astar () |
Private Attributes | |
| std::vector< Tile_coord > | path |
| int | pathlen |
| int | dir |
| int | stop |
| int | next_index |
Definition at line 26 of file Astar.h.
| int Astar::NewPath | ( | Tile_coord | s, | |
| Tile_coord | d, | |||
| Pathfinder_client * | client | |||
| ) | [virtual] |
Implements PathFinder.
Definition at line 31 of file Astar.cc.
References PathFinder::dest, dir, Find_path(), next_index, path, pathlen, s, PathFinder::src, and stop.
Referenced by Path_walking_actor_action::create_path(), and Fast_pathfinder_client::is_grabable().
Here is the call graph for this function:

| int Astar::GetNextStep | ( | Tile_coord & | n, | |
| bool & | done | |||
| ) | [virtual] |
Implements PathFinder.
Definition at line 54 of file Astar.cc.
References dir, next_index, path, and stop.
| int Astar::set_backwards | ( | ) | [virtual] |
| virtual int Astar::following_smart_path | ( | ) | [inline, virtual] |
| int Astar::get_num_steps | ( | ) | [virtual] |
std::vector<Tile_coord> Astar::path [private] |
int Astar::pathlen [private] |
int Astar::dir [private] |
int Astar::stop [private] |
int Astar::next_index [private] |
1.5.1