cost_calculator Struct Reference

#include <pathfind.hpp>

Inheritance diagram for cost_calculator:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual double cost (const gamemap::location &src, const gamemap::location &loc, const double so_far) const =0
virtual ~cost_calculator ()
double getNoPathValue (void) const


Detailed Description

Definition at line 75 of file pathfind.hpp.


Constructor & Destructor Documentation

virtual cost_calculator::~cost_calculator (  )  [inline, virtual]

Definition at line 78 of file pathfind.hpp.


Member Function Documentation

virtual double cost_calculator::cost ( const gamemap::location src,
const gamemap::location loc,
const double  so_far 
) const [pure virtual]

double cost_calculator::getNoPathValue ( void   )  const [inline]

Definition at line 79 of file pathfind.hpp.

Referenced by a_star_search(), and shortest_path_calculator::cost().


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

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