The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
game_logic::candidate_action_with_filters Class Reference

#include <candidates.hpp>

Inheritance diagram for game_logic::candidate_action_with_filters:
Inheritance graph

Public Member Functions

 candidate_action_with_filters (const std::string &name, const std::string &type, const config &cfg, function_symbol_table *function_table)
 
- Public Member Functions inherited from game_logic::base_candidate_action
 base_candidate_action (const std::string &name, const std::string &type, const config &cfg, function_symbol_table *function_table)
 
virtual ~base_candidate_action ()
 
virtual void evaluate (ai::formula_ai *, unit_map &)
 
virtual void update_callable_map (game_logic::map_formula_callable &)
 
int get_score () const
 
const_formula_ptrget_action ()
 
const std::stringget_name () const
 
const std::stringget_type () const
 

Protected Member Functions

variant do_filtering (ai::formula_ai *ai, variant &input, game_logic::const_formula_ptr formula)
 
- Protected Member Functions inherited from game_logic::base_candidate_action
int execute_formula (const const_formula_ptr &formula, const game_logic::formula_callable &callable, const ai::formula_ai *ai)
 

Protected Attributes

game_logic::candidate_action_filters filter_map_
 
- Protected Attributes inherited from game_logic::base_candidate_action
std::string name_
 
std::string type_
 
const_formula_ptr eval_
 
const_formula_ptr action_
 
int score_
 

Detailed Description

Definition at line 74 of file candidates.hpp.

Constructor & Destructor Documentation

game_logic::candidate_action_with_filters::candidate_action_with_filters ( const std::string name,
const std::string type,
const config cfg,
function_symbol_table function_table 
)

Definition at line 58 of file candidates.cpp.

References config::attribute_range(), config::child(), and filter_map_.

Member Function Documentation

variant game_logic::candidate_action_with_filters::do_filtering ( ai::formula_ai ai,
variant input,
game_logic::const_formula_ptr  formula 
)
protected

Member Data Documentation

game_logic::candidate_action_filters game_logic::candidate_action_with_filters::filter_map_
protected

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