Public Member Functions | Protected Attributes

ai::goal Class Reference

#include <goal.hpp>

Inheritance diagram for ai::goal:
Inheritance graph
[legend]
Collaboration diagram for ai::goal:
Collaboration graph
[legend]

List of all members.

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_

Detailed Description

Definition at line 45 of file goal.hpp.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

ai::goal::~goal (  )  [virtual]

Definition at line 62 of file goal.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Definition at line 67 of file goal.cpp.

std::string ai::goal::get_engine (  )  const [virtual]

Implements ai::component.

Definition at line 88 of file goal.cpp.

References cfg_.

std::string ai::goal::get_id (  )  const [virtual]

Implements ai::component.

Definition at line 78 of file goal.cpp.

References cfg_.

std::string ai::goal::get_name (  )  const [virtual]

Implements ai::component.

Definition at line 83 of file goal.cpp.

References cfg_.

void ai::goal::on_create ( boost::shared_ptr< ai::lua_ai_context  )  [virtual]

Reimplemented in ai::lua_goal.

Definition at line 57 of file goal.cpp.

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().

Here is the caller graph for this function:

bool ai::goal::redeploy ( const config cfg  ) 

Definition at line 94 of file goal.cpp.

References cfg_, and on_create().

Here is the call graph for this function:

config ai::goal::to_config (  )  const [virtual]

Definition at line 73 of file goal.cpp.

References cfg_.


Member Data Documentation

config ai::goal::cfg_ [protected]

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:18:27 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs