Public Member Functions | Private Attributes

ai::lua_stage_wrapper Class Reference

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

List of all members.

Public Member Functions

 lua_stage_wrapper (ai_context &context, const config &cfg, lua_ai_context &lua_ai_ctx)
virtual ~lua_stage_wrapper ()
virtual bool do_play_stage ()
 Play the turn - implementation.
virtual config to_config () const
 serialize

Private Attributes

boost::shared_ptr
< lua_ai_action_handler
action_handler_
std::string code_
config serialized_evaluation_state_

Detailed Description

Definition at line 131 of file engine_lua.cpp.


Constructor & Destructor Documentation

ai::lua_stage_wrapper::lua_stage_wrapper ( ai_context context,
const config cfg,
lua_ai_context lua_ai_ctx 
) [inline]

Definition at line 133 of file engine_lua.cpp.

References ai::candidate_action::disable(), and ai::lua_sticky_candidate_action_wrapper::execute().

Here is the call graph for this function:

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

Definition at line 139 of file engine_lua.cpp.


Member Function Documentation

virtual bool ai::lua_stage_wrapper::do_play_stage (  )  [inline, virtual]

Play the turn - implementation.

Returns:
true only if game state has changed. Really only needed for ministages. Returning false is always safe.

Implements ai::stage.

Definition at line 143 of file engine_lua.cpp.

References action_handler_, code_, LuaKernel::create_lua_ai_action_handler(), and resources::lua_kernel.

Here is the call graph for this function:

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

serialize

Reimplemented from ai::stage.

Definition at line 155 of file engine_lua.cpp.

References action_handler_, and serialized_evaluation_state_.


Member Data Documentation

Definition at line 163 of file engine_lua.cpp.

Referenced by do_play_stage(), and to_config().

std::string ai::lua_stage_wrapper::code_ [private]

Definition at line 164 of file engine_lua.cpp.

Referenced by do_play_stage().

Definition at line 165 of file engine_lua.cpp.

Referenced by to_config().


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