The Battle for Wesnoth  1.19.5+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 279 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 
)
inline

Definition at line 281 of file cave_map_generator.cpp.

Member Function Documentation

◆ cost()

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

Member Data Documentation

◆ laziness_

double passage_path_calculator::laziness_
private

Definition at line 292 of file cave_map_generator.cpp.

◆ map_

const t_translation::ter_map& passage_path_calculator::map_
private

Definition at line 290 of file cave_map_generator.cpp.

◆ rng_

std::mt19937& passage_path_calculator::rng_
private

Definition at line 294 of file cave_map_generator.cpp.

◆ wall_

t_translation::terrain_code passage_path_calculator::wall_
private

Definition at line 291 of file cave_map_generator.cpp.

◆ windiness_

std::size_t passage_path_calculator::windiness_
private

Definition at line 293 of file cave_map_generator.cpp.


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