Public Member Functions | Private Member Functions | Private Attributes

ai::target_unit_goal Class Reference

#include <goal.hpp>

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

List of all members.

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_

Detailed Description

Definition at line 79 of file goal.hpp.


Constructor & Destructor Documentation

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

Definition at line 142 of file goal.cpp.


Member Function Documentation

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

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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

Definition at line 90 of file goal.hpp.

References value_.

Referenced by add_targets().

Here is the caller graph for this function:


Member Data Documentation

double ai::target_unit_goal::value_ [private]

Definition at line 94 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