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

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 47 of file ca_move_to_targets.cpp.

Constructor & Destructor Documentation

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 49 of file ca_move_to_targets.cpp.

Member Function Documentation

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

Member Data Documentation

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

Definition at line 85 of file ca_move_to_targets.cpp.

Referenced by cost().

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

Definition at line 83 of file ca_move_to_targets.cpp.

Referenced by cost().

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

Definition at line 81 of file ca_move_to_targets.cpp.

Referenced by cost().

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

Definition at line 84 of file ca_move_to_targets.cpp.

Referenced by cost().

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

Definition at line 80 of file ca_move_to_targets.cpp.

Referenced by cost().

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

Definition at line 82 of file ca_move_to_targets.cpp.

Referenced by cost().


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