The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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

Definition at line 823 of file pathfind.cpp.

Member Function Documentation

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

Implements pathfind::cost_calculator.

Definition at line 826 of file pathfind.cpp.


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