Astar Class Reference

#include <Astar.h>

Inheritance diagram for Astar:

Inheritance graph
[legend]
Collaboration diagram for Astar:

Collaboration graph
[legend]
List of all members.

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_coordpath
int pathlen
int dir
int stop
int next_index

Detailed Description

Definition at line 26 of file Astar.h.


Constructor & Destructor Documentation

Astar::Astar (  )  [inline]

Definition at line 34 of file Astar.h.

Astar::~Astar (  )  [virtual]

Definition at line 96 of file Astar.cc.


Member Function Documentation

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]

Reimplemented from PathFinder.

Definition at line 73 of file Astar.cc.

virtual int Astar::following_smart_path (  )  [inline, virtual]

Reimplemented from PathFinder.

Definition at line 46 of file Astar.h.

int Astar::get_num_steps (  )  [virtual]

Implements PathFinder.

Definition at line 86 of file Astar.cc.


Member Data Documentation

std::vector<Tile_coord> Astar::path [private]

Definition at line 28 of file Astar.h.

Referenced by GetNextStep(), and NewPath().

int Astar::pathlen [private]

Definition at line 29 of file Astar.h.

Referenced by NewPath().

int Astar::dir [private]

Definition at line 30 of file Astar.h.

Referenced by GetNextStep(), and NewPath().

int Astar::stop [private]

Definition at line 31 of file Astar.h.

Referenced by GetNextStep(), and NewPath().

int Astar::next_index [private]

Definition at line 32 of file Astar.h.

Referenced by GetNextStep(), and NewPath().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:46:58 2007 for ExultEngine by  doxygen 1.5.1