21 #ifndef LUA_OBJECT_HPP_INCLUDED
22 #define LUA_OBJECT_HPP_INCLUDED
35 #include <boost/shared_ptr.hpp>
115 for (
int i = 1;
i < l + 1; ++
i)
141 cfg->add_child(
"not");
152 std::back_insert_iterator< std::vector<target> > tg(*targets);
155 for (
int i = 1;
i <=
l; ++
i)
179 type = target::TYPE::string_to_enum(
lua_tostring(L, -1));
190 *tg =
target(ml, value, type);
LUA_API void lua_rawgeti(lua_State *L, int idx, int n)
TYPE
UNSCALED : image will be drawn "as is" without changing size, even in case of redraw SCALED_TO_ZOOM :...
bool luaW_tovconfig(lua_State *L, int index, vconfig &vcfg)
Gets an optional vconfig from either a table or a userdata.
LUA_API void lua_settop(lua_State *L, int idx)
GLuint GLuint GLsizei GLenum type
#define lua_tointeger(L, i)
boost::shared_ptr< T > value_
#define lua_tonumber(L, i)
GLint GLint GLint GLint GLint GLint y
Definitions for the interface to Wesnoth Markup Language (WML).
LUA_API int lua_absindex(lua_State *L, int idx)
virtual ~lua_object_base()
A small explanation about what's going on here: Each action has access to two game_info objects First...
virtual void store(lua_State *L, int n)=0
LUA_API int lua_isstring(lua_State *L, int idx)
bool luaW_toboolean(lua_State *L, int n)
void store(lua_State *L, int n)
filter_context * filter_con
GLsizei const GLfloat * value
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
Encapsulates the map of the game.
bool luaW_toconfig(lua_State *L, int index, config &cfg)
Converts an optional table or vconfig to a config object.
#define lua_tostring(L, i)
GLint GLint GLint GLint GLint x
LUA_API int lua_isnumber(lua_State *L, int idx)
LUA_API void lua_gettable(lua_State *L, int idx)
LUA_API size_t lua_rawlen(lua_State *L, int idx)
boost::shared_ptr< T > to_type(lua_State *, int)
A variable-expanding proxy for the config class.
A config object defines a single node in a WML file, with access to child nodes.
LUA_API void lua_pushinteger(lua_State *L, lua_Integer n)
LUA_API void lua_rawget(lua_State *L, int idx)
GLsizei const GLcharARB ** string
LUA_API const char * lua_pushstring(lua_State *L, const char *s)