The Battle for Wesnoth  1.19.5+dev
Namespaces | Functions
lua_map_location_ops.cpp File Reference
#include "scripting/lua_map_location_ops.hpp"
#include "scripting/lua_common.hpp"
#include "scripting/push_check.hpp"
#include "map/location.hpp"
#include "pathutils.hpp"
#include <string>
#include <utility>
Include dependency graph for lua_map_location_ops.cpp:

Go to the source code of this file.

Namespaces

 lua_map_location
 

Functions

static bool luaW_tocubeloc (lua_State *L, int idx, cubic_location &out)
 
static cubic_location luaW_checkcubeloc (lua_State *L, int idx)
 
static void luaW_pushcubeloc (lua_State *L, cubic_location loc)
 
int lua_map_location::intf_get_direction (lua_State *L)
 Expose map_location::get_direction function to lua Arg 1: a location Arg 2: a direction Arg 3: (optional) number of steps. More...
 
int lua_map_location::intf_vector_sum (lua_State *L)
 Expose map_location::vector_sum to lua. More...
 
int lua_map_location::intf_vector_diff (lua_State *L)
 Expose map_location::vector_difference to lua. More...
 
int lua_map_location::intf_vector_negation (lua_State *L)
 Expose map_location::vector_negation to lua. More...
 
int lua_map_location::intf_rotate_right_around_center (lua_State *L)
 Expose map_location::rotate_right_around_center to lua. More...
 
int lua_map_location::intf_tiles_adjacent (lua_State *L)
 Expose map_location tiles_adjacent. More...
 
int lua_map_location::intf_get_adjacent_tiles (lua_State *L)
 Expose map_location get_adjacent_tiles. More...
 
int lua_map_location::intf_get_tile_ring (lua_State *L)
 Expose map_location get_tile_ring. More...
 
int lua_map_location::intf_get_tiles_in_radius (lua_State *L)
 Expose map_location get_tiles_in_radius. More...
 
int lua_map_location::intf_distance_between (lua_State *L)
 Expose map_location distance_between. More...
 
int lua_map_location::intf_get_in_cubic (lua_State *L)
 Expose map_location to_cubic. More...
 
int lua_map_location::intf_get_from_cubic (lua_State *L)
 Expose map_location from_cubic. More...
 
int lua_map_location::intf_get_relative_dir (lua_State *L)
 Expose map_location get_relative_dir. More...
 

Function Documentation

◆ luaW_checkcubeloc()

static cubic_location luaW_checkcubeloc ( lua_State *  L,
int  idx 
)
static

Definition at line 50 of file lua_map_location_ops.cpp.

References luaW_tocubeloc().

Referenced by lua_map_location::intf_get_from_cubic().

◆ luaW_pushcubeloc()

static void luaW_pushcubeloc ( lua_State *  L,
cubic_location  loc 
)
static

◆ luaW_tocubeloc()

static bool luaW_tocubeloc ( lua_State *  L,
int  idx,
cubic_location out 
)
static