Public Member Functions | Private Attributes

ai::lua_sticky_candidate_action_wrapper Class Reference

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

List of all members.

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< unitbound_unit_

Detailed Description

Definition at line 98 of file engine_lua.cpp.


Constructor & Destructor Documentation

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().

Here is the caller graph for this function:


Member Function Documentation

virtual double ai::lua_sticky_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

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 127 of file engine_lua.cpp.

Referenced by evaluate().


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