The Battle for Wesnoth  1.19.7+dev
Public Member Functions | List of all members
pathfind::dummy_path_calculator Struct Reference

Function which doesn't take anything into account. More...

#include <pathfind.hpp>

Inheritance diagram for pathfind::dummy_path_calculator:

Public Member Functions

 dummy_path_calculator (const unit &u, const gamemap &map)
 
virtual double cost (const map_location &loc, const double so_far) const
 
- Public Member Functions inherited from pathfind::cost_calculator
 cost_calculator ()
 
virtual ~cost_calculator ()
 

Additional Inherited Members

- Static Public Member Functions inherited from pathfind::cost_calculator
static double getNoPathValue ()
 

Detailed Description

Function which doesn't take anything into account.

Used by move_unit_fake for the last-chance case.

Definition at line 255 of file pathfind.hpp.

Constructor & Destructor Documentation

◆ dummy_path_calculator()

pathfind::dummy_path_calculator::dummy_path_calculator ( const unit u,
const gamemap map 
)

Definition at line 868 of file pathfind.cpp.

Member Function Documentation

◆ cost()

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

Implements pathfind::cost_calculator.

Definition at line 871 of file pathfind.cpp.


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