The Battle for Wesnoth  1.17.4+dev
Classes | Namespaces | Functions
lua_terrainfilter.hpp File Reference
#include <cstddef>
#include <string>
#include <memory>
#include <map>
#include <set>
#include "map/map.hpp"
#include "scripting/lua_common.hpp"
Include dependency graph for lua_terrainfilter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lua_mapgen::filter
 

Namespaces

 lua_mapgen
 
 lua_terrainfilter
 

Functions

std::string lua_mapgen::register_filter_metatables (lua_State *L)
 
bool luaW_is_mgfilter (lua_State *L, int index)
 
lua_mapgen::filterluaW_to_mgfilter (lua_State *L, int index)
 
lua_mapgen::filterluaW_check_mgfilter (lua_State *L, int index)
 
void lua_mgfilter_setmetatable (lua_State *L)
 
int intf_terrainfilter_create (lua_State *L)
 Create a filter. More...
 
int intf_mg_get_locations (lua_State *L)
 
int intf_mg_get_tiles_radius (lua_State *L)
 
std::string lua_terrainfilter::register_metatables (lua_State *L)
 

Function Documentation

◆ intf_mg_get_locations()

int intf_mg_get_locations ( lua_State *  L)

◆ intf_mg_get_tiles_radius()

int intf_mg_get_tiles_radius ( lua_State *  L)

◆ intf_terrainfilter_create()

int intf_terrainfilter_create ( lua_State *  L)

Create a filter.

Definition at line 781 of file lua_terrainfilter.cpp.

References e, luaW_push_mgfilter(), and invalid_lua_argument::what().

Referenced by mapgen_lua_kernel::mapgen_lua_kernel().

◆ lua_mgfilter_setmetatable()

void lua_mgfilter_setmetatable ( lua_State *  L)

Definition at line 764 of file lua_terrainfilter.cpp.

References terrinfilterKey.

Referenced by luaW_push_mgfilter().

◆ luaW_check_mgfilter()

lua_mapgen::filter& luaW_check_mgfilter ( lua_State *  L,
int  index 
)

◆ luaW_is_mgfilter()

bool luaW_is_mgfilter ( lua_State *  L,
int  index 
)

Definition at line 741 of file lua_terrainfilter.cpp.

References terrinfilterKey.

Referenced by intf_mg_get_locations(), luaW_check_mgfilter(), and luaW_to_mgfilter().

◆ luaW_to_mgfilter()

lua_mapgen::filter* luaW_to_mgfilter ( lua_State *  L,
int  index 
)

Definition at line 747 of file lua_terrainfilter.cpp.

References luaW_is_mgfilter().