#include <goal.hpp>


Public Member Functions | |
| target_unit_goal (readonly_context &context, const config &cfg) | |
| virtual void | add_targets (std::back_insert_iterator< std::vector< target > > target_list) |
| virtual void | on_create () |
Private Member Functions | |
| double | value () const |
Private Attributes | |
| double | value_ |
Definition at line 79 of file goal.hpp.
| ai::target_unit_goal::target_unit_goal | ( | readonly_context & | context, | |
| const config & | cfg | |||
| ) |
| void ai::target_unit_goal::add_targets | ( | std::back_insert_iterator< std::vector< target > > | target_list | ) | [virtual] |
Reimplemented from ai::goal.
Definition at line 121 of file goal.cpp.
References ai::goal::active(), ai::goal::cfg_, config::child(), unit::get_location(), LOG_AI_GOAL, unit::matches_filter(), resources::units, and value().

| void ai::target_unit_goal::on_create | ( | ) | [virtual] |
Reimplemented from ai::goal.
Definition at line 108 of file goal.cpp.
References ai::goal::cfg_, ERR_AI_GOAL, config::get(), lexical_cast(), and value_.

| double ai::target_unit_goal::value | ( | ) | const [inline, private] |
Definition at line 90 of file goal.hpp.
References value_.
Referenced by add_targets().

double ai::target_unit_goal::value_ [private] |
Definition at line 94 of file goal.hpp.
Referenced by on_create(), and value().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:28 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |