Public Member Functions | Private Member Functions | Private Attributes

ai::protect_goal Class Reference

#include <goal.hpp>

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

List of all members.

Public Member Functions

 protect_goal (readonly_context &context, const config &cfg, bool protect_only_own_unit, bool protect_unit)
virtual void add_targets (std::back_insert_iterator< std::vector< target > > target_list)
virtual void on_create ()

Private Member Functions

double value ()

Private Attributes

boost::shared_ptr< terrain_filterfilter_ptr_
bool protect_only_own_unit_
bool protect_unit_
int radius_
double value_

Detailed Description

Definition at line 118 of file goal.hpp.


Constructor & Destructor Documentation

ai::protect_goal::protect_goal ( readonly_context context,
const config cfg,
bool  protect_only_own_unit,
bool  protect_unit 
)

Definition at line 291 of file goal.cpp.


Member Function Documentation

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

Reimplemented from ai::goal.

Definition at line 193 of file goal.cpp.

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

Here is the call graph for this function:

double ai::protect_goal::value (  )  [inline, private]

Definition at line 130 of file goal.hpp.

References value_.


Member Data Documentation

boost::shared_ptr<terrain_filter> ai::protect_goal::filter_ptr_ [private]

Definition at line 135 of file goal.hpp.

Referenced by add_targets(), and on_create().

Definition at line 136 of file goal.hpp.

Referenced by add_targets().

Definition at line 137 of file goal.hpp.

Referenced by add_targets().

Definition at line 138 of file goal.hpp.

Referenced by add_targets(), and on_create().

double ai::protect_goal::value_ [private]

Definition at line 139 of file goal.hpp.

Referenced by add_targets(), 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