The Battle for Wesnoth  1.15.0-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:
Inheritance graph

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 254 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 856 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 859 of file pathfind.cpp.


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