#include <lua_object.hpp>
Public Member Functions | |
lua_object () | |
boost::shared_ptr< T > | get () |
void | store (lua_State *L, int n) |
Public Member Functions inherited from ai::lua_object_base | |
lua_object_base () | |
virtual | ~lua_object_base () |
Protected Member Functions | |
boost::shared_ptr< T > | to_type (lua_State *, int) |
template<> | |
boost::shared_ptr < aspect_attacks_lua_filter > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< double > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< std::string > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< bool > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< int > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< std::vector < std::string > > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< config > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< terrain_filter > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr< std::vector < target > > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr < unit_advancements_aspect > | to_type (lua_State *L, int n) |
template<> | |
boost::shared_ptr < aspect_attacks_lua_filter > | to_type (lua_State *L, int n) |
Protected Attributes | |
boost::shared_ptr< T > | value_ |
Definition at line 54 of file lua_object.hpp.
|
inline |
Definition at line 59 of file lua_object.hpp.
|
inline |
Definition at line 65 of file lua_object.hpp.
References ai::lua_object< T >::value_.
|
inlinevirtual |
Implements ai::lua_object_base.
Definition at line 70 of file lua_object.hpp.
References lua_absindex(), ai::lua_object< T >::to_type(), and ai::lua_object< T >::value_.
|
protected |
Definition at line 42 of file lua_object.cpp.
References resources::filter_con, lua_getfield(), lua_isfunction, lua_istable, lua_pop, LUA_REGISTRYINDEX, luaL_ref(), and luaW_tovconfig().
|
inlineprotected |
Definition at line 78 of file lua_object.hpp.
Referenced by ai::lua_object< T >::store().
|
inlineprotected |
Definition at line 87 of file lua_object.hpp.
References lua_tonumber.
|
inlineprotected |
Definition at line 93 of file lua_object.hpp.
References lua_tostring.
|
inlineprotected |
Definition at line 99 of file lua_object.hpp.
References luaW_toboolean().
|
inlineprotected |
Definition at line 105 of file lua_object.hpp.
References int(), and lua_tointeger.
|
inlineprotected |
Definition at line 111 of file lua_object.hpp.
References i, lua_gettable(), lua_pushinteger(), lua_rawlen(), lua_settop(), and lua_tostring.
|
inlineprotected |
Definition at line 128 of file lua_object.hpp.
References luaW_toconfig().
|
inlineprotected |
Definition at line 136 of file lua_object.hpp.
References resources::filter_con, and luaW_tovconfig().
|
inlineprotected |
Definition at line 149 of file lua_object.hpp.
References i, lua_isnumber(), lua_isstring(), lua_pop, lua_pushstring(), lua_rawget(), lua_rawgeti(), lua_rawlen(), lua_settop(), lua_tointeger, and lua_tostring.
|
inlineprotected |
Definition at line 198 of file lua_object.hpp.
|
protected |
|
protected |
Definition at line 83 of file lua_object.hpp.
Referenced by ai::lua_object< T >::get(), and ai::lua_object< T >::store().