Public Member Functions | Private Attributes

ai::fai_candidate_action_wrapper Class Reference

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

List of all members.

Public Member Functions

 fai_candidate_action_wrapper (rca_context &context, const config &cfg, game_logic::candidate_action_ptr fai_ca, formula_ai &_formula_ai)
virtual ~fai_candidate_action_wrapper ()
virtual double evaluate ()
 Evaluate the candidate action, resetting the internal state of the action.
virtual void execute ()
 Execute the candidate action.
virtual config to_config () const
 serialize

Private Attributes

game_logic::candidate_action_ptr fai_ca_
formula_aiformula_ai_
const config cfg_

Detailed Description

Definition at line 41 of file engine_fai.cpp.


Constructor & Destructor Documentation

ai::fai_candidate_action_wrapper::fai_candidate_action_wrapper ( rca_context context,
const config cfg,
game_logic::candidate_action_ptr  fai_ca,
formula_ai _formula_ai 
) [inline]

Definition at line 43 of file engine_fai.cpp.

References ai::candidate_action::candidate_action(), cfg_, fai_ca_, and formula_ai_.

Here is the call graph for this function:

virtual ai::fai_candidate_action_wrapper::~fai_candidate_action_wrapper (  )  [inline, virtual]

Definition at line 49 of file engine_fai.cpp.


Member Function Documentation

virtual double ai::fai_candidate_action_wrapper::evaluate (  )  [inline, virtual]

Evaluate the candidate action, resetting the internal state of the action.

Returns:
the score
Return values:
>0 if the action is good
<=0 if the action is not good

Implements ai::candidate_action.

Definition at line 52 of file engine_fai.cpp.

virtual void ai::fai_candidate_action_wrapper::execute (  )  [inline, virtual]

Execute the candidate action.

Implements ai::candidate_action.

Definition at line 59 of file engine_fai.cpp.

virtual config ai::fai_candidate_action_wrapper::to_config (  )  const [inline, virtual]

serialize

Reimplemented from ai::candidate_action.

Definition at line 64 of file engine_fai.cpp.


Member Data Documentation

Definition at line 71 of file engine_fai.cpp.

Referenced by fai_candidate_action_wrapper().

Definition at line 69 of file engine_fai.cpp.

Referenced by fai_candidate_action_wrapper().

Definition at line 70 of file engine_fai.cpp.

Referenced by fai_candidate_action_wrapper().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:25 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs