The Battle for Wesnoth  1.17.23+dev
Public Member Functions | Private Attributes | List of all members
passage_path_calculator Struct Reference
Inheritance diagram for passage_path_calculator:

Public Member Functions

 passage_path_calculator (const t_translation::ter_map &mapdata, const t_translation::terrain_code &wall, double laziness, std::size_t windiness, std::mt19937 &rng)
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 ()

Private Attributes

const t_translation::ter_mapmap_
t_translation::terrain_code wall_
double laziness_
std::size_t windiness_
std::mt19937 & rng_

Additional Inherited Members

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

Detailed Description

Definition at line 283 of file cave_map_generator.cpp.

Constructor & Destructor Documentation

◆ passage_path_calculator()

passage_path_calculator::passage_path_calculator ( const t_translation::ter_map mapdata,
const t_translation::terrain_code wall,
double  laziness,
std::size_t  windiness,
std::mt19937 &  rng 

Definition at line 285 of file cave_map_generator.cpp.

Member Function Documentation

◆ cost()

double passage_path_calculator::cost ( const map_location loc,
const double  so_far 
) const

Member Data Documentation

◆ laziness_

double passage_path_calculator::laziness_

Definition at line 296 of file cave_map_generator.cpp.

◆ map_

const t_translation::ter_map& passage_path_calculator::map_

Definition at line 294 of file cave_map_generator.cpp.

◆ rng_

std::mt19937& passage_path_calculator::rng_

Definition at line 298 of file cave_map_generator.cpp.

◆ wall_

t_translation::terrain_code passage_path_calculator::wall_

Definition at line 295 of file cave_map_generator.cpp.

◆ windiness_

std::size_t passage_path_calculator::windiness_

Definition at line 297 of file cave_map_generator.cpp.

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