Public Member Functions | Private Attributes

ai::lua_goal Class Reference

#include <goal.hpp>

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

List of all members.

Public Member Functions

 lua_goal (readonly_context &context, const config &cfg)
virtual void add_targets (std::back_insert_iterator< std::vector< target > > target_list)
void on_create (boost::shared_ptr< ai::lua_ai_context >)

Private Attributes

std::string code_
boost::shared_ptr
< lua_ai_action_handler
handler_

Detailed Description

Definition at line 169 of file goal.hpp.


Constructor & Destructor Documentation

ai::lua_goal::lua_goal ( readonly_context context,
const config cfg 
)

Definition at line 301 of file goal.cpp.

References code_, and config::has_attribute().

Here is the call graph for this function:


Member Function Documentation

void ai::lua_goal::add_targets ( std::back_insert_iterator< std::vector< target > >  target_list  )  [virtual]

Reimplemented from ai::goal.

Definition at line 320 of file goal.cpp.

References handler_.

void ai::lua_goal::on_create ( boost::shared_ptr< ai::lua_ai_context l_ctx  )  [virtual]

Reimplemented from ai::goal.

Definition at line 315 of file goal.cpp.

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

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 176 of file goal.hpp.

Referenced by lua_goal(), and on_create().

boost::shared_ptr<lua_ai_action_handler> ai::lua_goal::handler_ [private]

Definition at line 177 of file goal.hpp.

Referenced by add_targets(), and on_create().


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

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