Public Member Functions | Private Member Functions | Private Attributes

ai::target_location_goal Class Reference

#include <goal.hpp>

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

List of all members.

Public Member Functions

 target_location_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

boost::shared_ptr< terrain_filterfilter_ptr_
double value_

Detailed Description

Definition at line 98 of file goal.hpp.


Constructor & Destructor Documentation

ai::target_location_goal::target_location_goal ( readonly_context context,
const config cfg 
)

Definition at line 184 of file goal.cpp.


Member Function Documentation

void ai::target_location_goal::add_targets ( std::back_insert_iterator< std::vector< target > >  target_list  )  [virtual]

Reimplemented from ai::goal.

Definition at line 166 of file goal.cpp.

References ai::goal::active(), ai::target::EXPLICIT, filter_ptr_, LOG_AI_GOAL, and value().

Here is the call graph for this function:

void ai::target_location_goal::on_create (  )  [virtual]

Reimplemented from ai::goal.

Definition at line 149 of file goal.cpp.

References ai::goal::cfg_, config::child(), ERR_AI_GOAL, filter_ptr_, config::has_attribute(), lexical_cast(), resources::units, and value_.

Here is the call graph for this function:

double ai::target_location_goal::value (  )  const [inline, private]

Definition at line 109 of file goal.hpp.

References value_.

Referenced by add_targets().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 113 of file goal.hpp.

Referenced by add_targets(), and on_create().

Definition at line 114 of file goal.hpp.

Referenced by on_create(), and value().


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