Public Member Functions | Private Attributes

ai::lua_aspect< T > Class Template Reference

#include <aspect.hpp>

Inheritance diagram for ai::lua_aspect< T >:
Inheritance graph
[legend]
Collaboration diagram for ai::lua_aspect< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 lua_aspect (readonly_context &context, const config &cfg, const std::string &id, boost::shared_ptr< lua_ai_context > &l_ctx)
void recalculate () const
config to_config () const

Private Attributes

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

Detailed Description

template<typename T>
class ai::lua_aspect< T >

Definition at line 400 of file aspect.hpp.


Constructor & Destructor Documentation

template<typename T >
ai::lua_aspect< T >::lua_aspect ( readonly_context context,
const config cfg,
const std::string &  id,
boost::shared_ptr< lua_ai_context > &  l_ctx 
) [inline]

Todo:
for Nephro or Crab: get rid of this workaround

Definition at line 403 of file aspect.hpp.

References ai::lua_aspect< T >::code_, LuaKernel::create_lua_ai_action_handler(), ai::lua_aspect< T >::handler_, config::has_attribute(), and resources::lua_kernel.

Here is the call graph for this function:


Member Function Documentation

template<typename T >
void ai::lua_aspect< T >::recalculate (  )  const [inline, virtual]
template<typename T >
config ai::lua_aspect< T >::to_config (  )  const [inline, virtual]

Reimplemented from ai::aspect.

Definition at line 439 of file aspect.hpp.

References ai::lua_aspect< T >::code_.


Member Data Documentation

template<typename T >
std::string ai::lua_aspect< T >::code_ [private]

Definition at line 448 of file aspect.hpp.

Referenced by ai::lua_aspect< T >::lua_aspect(), and ai::lua_aspect< T >::to_config().

template<typename T >
boost::shared_ptr<lua_ai_action_handler> ai::lua_aspect< T >::handler_ [private]

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