Public Member Functions | Protected Attributes

game_logic::attack_candidate_action Class Reference

#include <candidates.hpp>

Inheritance diagram for game_logic::attack_candidate_action:
Inheritance graph
[legend]
Collaboration diagram for game_logic::attack_candidate_action:
Collaboration graph
[legend]

List of all members.

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 (game_logic::map_formula_callable &callable)

Protected Attributes

variant my_unit_
variant enemy_unit_

Detailed Description

Definition at line 153 of file candidates.hpp.


Constructor & Destructor Documentation

game_logic::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 195 of file candidates.cpp.


Member Function Documentation

void game_logic::attack_candidate_action::evaluate ( ai::formula_ai ai,
unit_map units 
) [virtual]
void game_logic::attack_candidate_action::update_callable_map ( game_logic::map_formula_callable callable  )  [virtual]

Reimplemented from game_logic::base_candidate_action.

Definition at line 298 of file candidates.cpp.

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

Here is the call graph for this function:


Member Data Documentation

Definition at line 162 of file candidates.hpp.

Referenced by evaluate(), and update_callable_map().

Definition at line 161 of file candidates.hpp.

Referenced by evaluate(), and update_callable_map().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:20:50 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs