The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
ai::ai_default_rca::move_cost_calculator Struct Reference
Inheritance diagram for ai::ai_default_rca::move_cost_calculator:

Public Member Functions

 move_cost_calculator (const unit &u, const gamemap &map, const unit_map &units, const move_map &enemy_dstsrc)
 
double cost (const map_location &loc, const double) const
 
- Public Member Functions inherited from pathfind::cost_calculator
 cost_calculator ()
 
virtual ~cost_calculator ()
 

Private Attributes

const unitunit_
 
const gamemapmap_
 
const unit_mapunits_
 
const move_mapenemy_dstsrc_
 
const int max_moves_
 
const bool avoid_enemies_
 

Additional Inherited Members

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

Detailed Description

Definition at line 45 of file ca_move_to_targets.cpp.

Constructor & Destructor Documentation

◆ move_cost_calculator()

ai::ai_default_rca::move_cost_calculator::move_cost_calculator ( const unit u,
const gamemap map,
const unit_map units,
const move_map enemy_dstsrc 
)
inline

Definition at line 47 of file ca_move_to_targets.cpp.

Member Function Documentation

◆ cost()

double ai::ai_default_rca::move_cost_calculator::cost ( const map_location loc,
const double   
) const
inlinevirtual

Member Data Documentation

◆ avoid_enemies_

const bool ai::ai_default_rca::move_cost_calculator::avoid_enemies_
private

Definition at line 83 of file ca_move_to_targets.cpp.

Referenced by cost().

◆ enemy_dstsrc_

const move_map& ai::ai_default_rca::move_cost_calculator::enemy_dstsrc_
private

Definition at line 81 of file ca_move_to_targets.cpp.

Referenced by cost().

◆ map_

const gamemap& ai::ai_default_rca::move_cost_calculator::map_
private

Definition at line 79 of file ca_move_to_targets.cpp.

Referenced by cost().

◆ max_moves_

const int ai::ai_default_rca::move_cost_calculator::max_moves_
private

Definition at line 82 of file ca_move_to_targets.cpp.

Referenced by cost().

◆ unit_

const unit& ai::ai_default_rca::move_cost_calculator::unit_
private

Definition at line 78 of file ca_move_to_targets.cpp.

Referenced by cost().

◆ units_

const unit_map& ai::ai_default_rca::move_cost_calculator::units_
private

Definition at line 80 of file ca_move_to_targets.cpp.

Referenced by cost().


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