#include <goal.hpp>


Public Member Functions | |
| goal (readonly_context &context, const config &cfg) | |
| virtual | ~goal () |
| virtual void | add_targets (std::back_insert_iterator< std::vector< target > > target_list) |
| virtual config | to_config () const |
| virtual void | on_create () |
| virtual void | on_create (boost::shared_ptr< ai::lua_ai_context >) |
| bool | active () const |
| virtual std::string | get_id () const |
| virtual std::string | get_name () const |
| virtual std::string | get_engine () const |
| bool | redeploy (const config &cfg) |
Protected Attributes | |
| config | cfg_ |
Definition at line 45 of file goal.hpp.
| ai::goal::goal | ( | readonly_context & | context, | |
| const config & | cfg | |||
| ) |
Definition at line 45 of file goal.cpp.
References ai::readonly_context_proxy::init_readonly_context_proxy().

| bool ai::goal::active | ( | ) | const |
Definition at line 102 of file goal.cpp.
References cfg_, and ai::readonly_context_proxy::is_active().
Referenced by ai::protect_goal::add_targets(), ai::target_location_goal::add_targets(), and ai::target_unit_goal::add_targets().


| void ai::goal::add_targets | ( | std::back_insert_iterator< std::vector< target > > | target_list | ) | [virtual] |
Reimplemented in ai::target_unit_goal, ai::target_location_goal, ai::protect_goal, and ai::lua_goal.
| std::string ai::goal::get_engine | ( | ) | const [virtual] |
| std::string ai::goal::get_id | ( | ) | const [virtual] |
| std::string ai::goal::get_name | ( | ) | const [virtual] |
| void ai::goal::on_create | ( | boost::shared_ptr< ai::lua_ai_context > | ) | [virtual] |
Reimplemented in ai::lua_goal.
| void ai::goal::on_create | ( | ) | [virtual] |
Reimplemented in ai::target_unit_goal, ai::target_location_goal, and ai::protect_goal.
Definition at line 53 of file goal.cpp.
Referenced by redeploy().

| bool ai::goal::redeploy | ( | const config & | cfg | ) |
Definition at line 94 of file goal.cpp.
References cfg_, and on_create().

| config ai::goal::to_config | ( | ) | const [virtual] |
config ai::goal::cfg_ [protected] |
Definition at line 73 of file goal.hpp.
Referenced by active(), ai::protect_goal::add_targets(), ai::target_unit_goal::add_targets(), get_engine(), get_id(), get_name(), ai::protect_goal::on_create(), ai::target_location_goal::on_create(), ai::target_unit_goal::on_create(), redeploy(), and to_config().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:27 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |