#include <aspect.hpp>


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_ |
Definition at line 400 of file aspect.hpp.
| 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] |
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.

| void ai::lua_aspect< T >::recalculate | ( | ) | const [inline, virtual] |
Implements ai::typesafe_aspect< T >.
Definition at line 430 of file aspect.hpp.
References ai::lua_aspect< T >::handler_, ai::aspect::valid_lua_, and ai::typesafe_aspect< T >::value_lua_.
| 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_.
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().
boost::shared_ptr<lua_ai_action_handler> ai::lua_aspect< T >::handler_ [private] |
Definition at line 447 of file aspect.hpp.
Referenced by ai::lua_aspect< T >::lua_aspect(), and ai::lua_aspect< T >::recalculate().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:22 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |