

Public Member Functions | |
| lua_sticky_candidate_action_wrapper (rca_context &context, const config &cfg, lua_ai_context &lua_ai_ctx) | |
| virtual double | evaluate () |
| Evaluate the candidate action, resetting the internal state of the action. | |
| virtual void | execute () |
| Execute the candidate action. | |
Private Attributes | |
| boost::shared_ptr< unit > | bound_unit_ |
Definition at line 98 of file engine_lua.cpp.
| ai::lua_sticky_candidate_action_wrapper::lua_sticky_candidate_action_wrapper | ( | rca_context & | context, | |
| const config & | cfg, | |||
| lua_ai_context & | lua_ai_ctx | |||
| ) | [inline] |
Definition at line 100 of file engine_lua.cpp.
Referenced by evaluate().

| virtual double ai::lua_sticky_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 |
Reimplemented from ai::lua_candidate_action_wrapper.
Definition at line 108 of file engine_lua.cpp.
References bound_unit_, gui2::event::find(), ai::lua_candidate_action_wrapper::lua_candidate_action_wrapper(), lua_sticky_candidate_action_wrapper(), and resources::units.
Referenced by execute().


| virtual void ai::lua_sticky_candidate_action_wrapper::execute | ( | ) | [inline, virtual] |
Execute the candidate action.
Reimplemented from ai::lua_candidate_action_wrapper.
Definition at line 121 of file engine_lua.cpp.
References evaluate().
Referenced by ai::lua_stage_wrapper::lua_stage_wrapper().


boost::shared_ptr<unit> ai::lua_sticky_candidate_action_wrapper::bound_unit_ [private] |
Definition at line 127 of file engine_lua.cpp.
Referenced by evaluate().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:26 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |