

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_ai & | formula_ai_ |
| const config | cfg_ |
Definition at line 41 of file engine_fai.cpp.
| 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_.

| virtual ai::fai_candidate_action_wrapper::~fai_candidate_action_wrapper | ( | ) | [inline, virtual] |
Definition at line 49 of file engine_fai.cpp.
| virtual double ai::fai_candidate_action_wrapper::evaluate | ( | ) | [inline, virtual] |
Evaluate the candidate action, resetting the internal state of the action.
| >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] |
const config ai::fai_candidate_action_wrapper::cfg_ [private] |
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().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:25 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |