The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Typedefs | Functions
lua_terrainfilter.hpp File Reference
#include <string>
#include <memory>
#include <map>
#include <set>
#include "map/map.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
 

Typedefs

using lua_mapgen::filter_ptr = std::unique_ptr< filter, std::function< void(filter *)> >
 

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::filter_ptr luaW_check_mgfilter (lua_State *L, int index, bool allow_compile=false)
 
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 810 of file lua_terrainfilter.cpp.

References e, and luaW_push_mgfilter().

Referenced by mapgen_lua_kernel::mapgen_lua_kernel().

◆ lua_mgfilter_setmetatable()

void lua_mgfilter_setmetatable ( lua_State *  L)

Definition at line 793 of file lua_terrainfilter.cpp.

References terrinfilterKey.

Referenced by luaW_push_mgfilter().

◆ luaW_check_mgfilter()

lua_mapgen::filter_ptr luaW_check_mgfilter ( lua_State *  L,
int  index,
bool  allow_compile = false 
)

◆ luaW_is_mgfilter()

bool luaW_is_mgfilter ( lua_State *  L,
int  index 
)

Definition at line 763 of file lua_terrainfilter.cpp.

References utf8::index(), and terrinfilterKey.

Referenced by luaW_check_mgfilter(), and luaW_to_mgfilter().

◆ luaW_to_mgfilter()

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

Definition at line 769 of file lua_terrainfilter.cpp.

References utf8::index(), and luaW_is_mgfilter().