The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
lua_map_location Namespace Reference

Functions

int intf_get_direction (lua_State *L)
 Expose map_location::get_direction function to lua Arg 1: a location Arg 2: a direction Arg 3: number of steps. More...
 
int intf_vector_sum (lua_State *L)
 Expose map_location::vector_sum to lua. More...
 
int intf_vector_negation (lua_State *L)
 Expose map_location::vector_negation to lua. More...
 
int intf_vector_zero (lua_State *L)
 Expose map_location::ZERO to lua. More...
 
int intf_rotate_right_around_center (lua_State *L)
 Expose map_location::rotate_right_around_center to lua. More...
 
int intf_tiles_adjacent (lua_State *L)
 Expose map_location tiles_adjacent. More...
 
int intf_get_adjacent_tiles (lua_State *L)
 Expose map_location get_adjacent_tiles. More...
 
int intf_distance_between (lua_State *L)
 Expose map_location distance_between. More...
 
int intf_get_in_basis_N_NE (lua_State *L)
 Expose map_location get_in_basis_N_NE. More...
 
int intf_get_relative_dir (lua_State *L)
 Expose map_location get_relative_dir. More...
 
int intf_parse_direction (lua_State *L)
 Expose map_location parse_direction. More...
 
int intf_write_direction (lua_State *L)
 Expose map_location write_direction. More...
 

Function Documentation

int lua_map_location::intf_distance_between ( lua_State L)
int lua_map_location::intf_get_adjacent_tiles ( lua_State L)

Expose map_location get_adjacent_tiles.

Definition at line 147 of file lua_map_location_ops.cpp.

References get_adjacent_tiles(), i, luaL_argerror(), luaW_pushlocation(), and luaW_tolocation().

Referenced by lua_kernel_base::lua_kernel_base().

int lua_map_location::intf_get_direction ( lua_State L)
int lua_map_location::intf_get_in_basis_N_NE ( lua_State L)
int lua_map_location::intf_get_relative_dir ( lua_State L)
int lua_map_location::intf_parse_direction ( lua_State L)
int lua_map_location::intf_rotate_right_around_center ( lua_State L)
int lua_map_location::intf_tiles_adjacent ( lua_State L)
int lua_map_location::intf_vector_negation ( lua_State L)
int lua_map_location::intf_vector_sum ( lua_State L)
int lua_map_location::intf_vector_zero ( lua_State L)

Expose map_location::ZERO to lua.

Definition at line 106 of file lua_map_location_ops.cpp.

References luaW_pushlocation(), and map_location::ZERO().

Referenced by lua_kernel_base::lua_kernel_base().

int lua_map_location::intf_write_direction ( lua_State L)