The Battle for Wesnoth  1.19.1+dev
Public Member Functions | Static Public Member Functions | List of all members
pathfind::cost_calculator Struct Referenceabstract

#include <pathfind.hpp>

Inheritance diagram for pathfind::cost_calculator:

Public Member Functions

 cost_calculator ()
virtual double cost (const map_location &loc, const double so_far) const =0
virtual ~cost_calculator ()

Static Public Member Functions

static double getNoPathValue ()

Detailed Description

Definition at line 58 of file pathfind.hpp.

Constructor & Destructor Documentation

◆ cost_calculator()

pathfind::cost_calculator::cost_calculator ( )

Definition at line 60 of file pathfind.hpp.

◆ ~cost_calculator()

virtual pathfind::cost_calculator::~cost_calculator ( )

Definition at line 63 of file pathfind.hpp.

Member Function Documentation

◆ cost()

virtual double pathfind::cost_calculator::cost ( const map_location loc,
const double  so_far 
) const
pure virtual

◆ getNoPathValue()

static double pathfind::cost_calculator::getNoPathValue ( )

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