PathFinder Class Reference

#include <PathFinder.h>

Inheritance diagram for PathFinder:

Inheritance graph
[legend]
Collaboration diagram for PathFinder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PathFinder ()
virtual int NewPath (Tile_coord s, Tile_coord d, Pathfinder_client *client)=0
Tile_coord get_src ()
Tile_coord get_dest ()
virtual int GetNextStep (Tile_coord &n, bool &done)=0
int GetNextStep (Tile_coord &n)
virtual int set_backwards ()
virtual int following_smart_path ()
virtual int get_num_steps ()=0
virtual ~PathFinder ()

Protected Attributes

Tile_coord src
Tile_coord dest

Detailed Description

Definition at line 48 of file PathFinder.h.


Constructor & Destructor Documentation

PathFinder::PathFinder (  )  [inline]

Definition at line 57 of file PathFinder.h.

PathFinder::~PathFinder (  )  [virtual]

Definition at line 55 of file PathFinder.cc.


Member Function Documentation

virtual int PathFinder::NewPath ( Tile_coord  s,
Tile_coord  d,
Pathfinder_client client 
) [pure virtual]

Implemented in Astar, and Zombie.

Referenced by Combat_schedule::approach_foe().

Tile_coord PathFinder::get_src (  )  [inline]

Definition at line 62 of file PathFinder.h.

References src.

Tile_coord PathFinder::get_dest (  )  [inline]

Definition at line 65 of file PathFinder.h.

References dest.

virtual int PathFinder::GetNextStep ( Tile_coord n,
bool &  done 
) [pure virtual]

Implemented in Astar, and Zombie.

Referenced by GetNextStep().

int PathFinder::GetNextStep ( Tile_coord n  )  [inline]

Definition at line 69 of file PathFinder.h.

References GetNextStep().

Here is the call graph for this function:

virtual int PathFinder::set_backwards (  )  [inline, virtual]

Reimplemented in Astar.

Definition at line 75 of file PathFinder.h.

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

Reimplemented in Astar.

Definition at line 77 of file PathFinder.h.

virtual int PathFinder::get_num_steps (  )  [pure virtual]

Implemented in Astar, and Zombie.


Member Data Documentation

Tile_coord PathFinder::src [protected]

Definition at line 51 of file PathFinder.h.

Referenced by get_src(), Zombie::NewPath(), and Astar::NewPath().

Tile_coord PathFinder::dest [protected]

Definition at line 52 of file PathFinder.h.

Referenced by get_dest(), Zombie::NewPath(), and Astar::NewPath().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:01:23 2007 for ExultEngine by  doxygen 1.5.1