The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
lua_map_location_ops.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2014 - 2025
3 by Chris Beck <render787@gmail.com>
4 Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY.
12
13 See the COPYING file for more details.
14*/
15
16#pragma once
17
18/**
19 * This namespace contains the implementations for wesnoth's
20 * lua bindings for the C++ map location operations.
21 */
22
23struct lua_State;
24
25namespace lua_map_location {
26
27int intf_get_direction(lua_State*);
28int intf_vector_sum(lua_State*);
29int intf_vector_diff(lua_State*);
30int intf_vector_negation(lua_State*);
32int intf_tiles_adjacent(lua_State*);
33int intf_get_adjacent_tiles(lua_State*);
34int intf_get_tile_ring(lua_State*);
35int intf_get_tiles_in_radius(lua_State*);
36int intf_distance_between(lua_State*);
37int intf_get_in_cubic(lua_State*);
38int intf_get_from_cubic(lua_State*);
39int intf_get_relative_dir(lua_State*);
40
41} // end namespace lua_map_location
int intf_get_relative_dir(lua_State *L)
Expose map_location get_relative_dir.
int intf_vector_negation(lua_State *L)
Expose map_location::vector_negation to lua.
int intf_distance_between(lua_State *L)
Expose map_location distance_between.
int intf_get_in_cubic(lua_State *L)
Expose map_location to_cubic.
int intf_tiles_adjacent(lua_State *L)
Expose map_location tiles_adjacent.
int intf_vector_diff(lua_State *L)
Expose map_location::vector_difference to lua.
int intf_get_from_cubic(lua_State *L)
Expose map_location from_cubic.
int intf_vector_sum(lua_State *L)
Expose map_location::vector_sum to lua.
int intf_get_tile_ring(lua_State *L)
Expose map_location get_tile_ring.
int intf_rotate_right_around_center(lua_State *L)
Expose map_location::rotate_right_around_center to lua.
int intf_get_tiles_in_radius(lua_State *L)
Expose map_location get_tiles_in_radius.
int intf_get_adjacent_tiles(lua_State *L)
Expose map_location get_adjacent_tiles.
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: (optio...