The Battle for Wesnoth  1.19.0-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)

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)

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_

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_

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: