The Battle for Wesnoth  1.19.5+dev
lua_map_location_ops.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2024
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 
23 struct lua_State;
24 
25 namespace lua_map_location {
26 
27 int intf_get_direction(lua_State*);
28 int intf_vector_sum(lua_State*);
29 int intf_vector_diff(lua_State*);
30 int intf_vector_negation(lua_State*);
31 int intf_rotate_right_around_center(lua_State*);
32 int intf_tiles_adjacent(lua_State*);
33 int intf_get_adjacent_tiles(lua_State*);
34 int intf_get_tile_ring(lua_State*);
35 int intf_get_tiles_in_radius(lua_State*);
36 int intf_distance_between(lua_State*);
37 int intf_get_in_cubic(lua_State*);
38 int intf_get_from_cubic(lua_State*);
39 int 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...