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

#include <candidates.hpp>

Inheritance diagram for wfl::attack_candidate_action:
Inheritance graph

Public Member Functions

 attack_candidate_action (const std::string &name, const std::string &type, const config &cfg, function_symbol_table *function_table)
 
virtual void evaluate (ai::formula_ai *ai, unit_map &units)
 
virtual void update_callable_map (map_formula_callable &callable)
 
- Public Member Functions inherited from wfl::candidate_action_with_filters
 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 wfl::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 ()
 
int get_score () const
 
const_formula_ptrget_action ()
 
const std::string & get_name () const
 
const std::string & get_type () const
 

Protected Attributes

variant my_unit_
 
variant enemy_unit_
 
- Protected Attributes inherited from wfl::candidate_action_with_filters
candidate_action_filters filter_map_
 
- Protected Attributes inherited from wfl::base_candidate_action
std::string name_
 
std::string type_
 
const_formula_ptr eval_
 
const_formula_ptr action_
 
int score_
 

Additional Inherited Members

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

Detailed Description

Definition at line 94 of file candidates.hpp.

Constructor & Destructor Documentation

wfl::attack_candidate_action::attack_candidate_action ( const std::string &  name,
const std::string &  type,
const config cfg,
function_symbol_table function_table 
)

Definition at line 142 of file candidates.cpp.

Member Function Documentation

void wfl::attack_candidate_action::evaluate ( ai::formula_ai ai,
unit_map units 
)
virtual
void wfl::attack_candidate_action::update_callable_map ( map_formula_callable callable)
virtual

Reimplemented from wfl::base_candidate_action.

Definition at line 245 of file candidates.cpp.

References wfl::map_formula_callable::add(), enemy_unit_, and my_unit_.

Member Data Documentation

variant wfl::attack_candidate_action::enemy_unit_
protected

Definition at line 103 of file candidates.hpp.

Referenced by evaluate(), and update_callable_map().

variant wfl::attack_candidate_action::my_unit_
protected

Definition at line 102 of file candidates.hpp.

Referenced by evaluate(), and update_callable_map().


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