Public Member Functions | Private Member Functions | Private Attributes

ai::testing_ai_default::move_leader_to_goals_phase Class Reference

#include <ca.hpp>

Inheritance diagram for ai::testing_ai_default::move_leader_to_goals_phase:
Inheritance graph
[legend]
Collaboration diagram for ai::testing_ai_default::move_leader_to_goals_phase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 move_leader_to_goals_phase (rca_context &context, const config &cfg)
virtual ~move_leader_to_goals_phase ()
virtual double evaluate ()
 Evaluate the candidate action, resetting the internal state of the action.
virtual void execute ()
 Execute the candidate action.

Private Member Functions

void remove_goal (const std::string &id)

Private Attributes

bool auto_remove_
map_location dst_
std::string id_
move_result_ptr move_

Detailed Description

Definition at line 137 of file ca.hpp.


Constructor & Destructor Documentation

ai::testing_ai_default::move_leader_to_goals_phase::move_leader_to_goals_phase ( rca_context context,
const config cfg 
)

Definition at line 620 of file ca.cpp.

ai::testing_ai_default::move_leader_to_goals_phase::~move_leader_to_goals_phase (  )  [virtual]

Definition at line 625 of file ca.cpp.


Member Function Documentation

double ai::testing_ai_default::move_leader_to_goals_phase::evaluate (  )  [virtual]
void ai::testing_ai_default::move_leader_to_goals_phase::execute (  )  [virtual]

Execute the candidate action.

Implements ai::candidate_action.

Definition at line 708 of file ca.cpp.

References auto_remove_, dst_, ai::candidate_action::get_name(), id_, LOG_AI_TESTING_AI_DEFAULT, move_, and remove_goal().

Here is the call graph for this function:

void ai::testing_ai_default::move_leader_to_goals_phase::remove_goal ( const std::string &  id  )  [private]

Definition at line 722 of file ca.cpp.

References ai::side_context_proxy::get_side(), and ai::manager::modify_active_ai_for_side().

Referenced by evaluate(), and execute().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 151 of file ca.hpp.

Referenced by evaluate(), and execute().

Definition at line 152 of file ca.hpp.

Referenced by evaluate(), and execute().

Reimplemented from ai::candidate_action.

Definition at line 153 of file ca.hpp.

Referenced by evaluate(), and execute().

Definition at line 154 of file ca.hpp.

Referenced by evaluate(), and execute().


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