The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Attributes | List of all members
ai::ai_default_rca::remove_wrong_targets Class Reference

Public Member Functions

 remove_wrong_targets (const readonly_context &context)
 
bool operator() (const target &t)
 

Private Attributes

const terrain_filteravoid_
 
const gamemapmap_
 

Detailed Description

Definition at line 86 of file ca_move_to_targets.cpp.

Constructor & Destructor Documentation

◆ remove_wrong_targets()

ai::ai_default_rca::remove_wrong_targets::remove_wrong_targets ( const readonly_context context)
inline

Definition at line 88 of file ca_move_to_targets.cpp.

Member Function Documentation

◆ operator()()

bool ai::ai_default_rca::remove_wrong_targets::operator() ( const target t)
inline

Definition at line 93 of file ca_move_to_targets.cpp.

References avoid_, DBG_AI, map_, gamemap_base::on_board(), and t.

Member Data Documentation

◆ avoid_

const terrain_filter& ai::ai_default_rca::remove_wrong_targets::avoid_
private

Definition at line 112 of file ca_move_to_targets.cpp.

Referenced by operator()().

◆ map_

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

Definition at line 113 of file ca_move_to_targets.cpp.

Referenced by operator()().


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