wesnoth/src/scripting/lua_map_location_ops.hpp
Celtic Minstrel 27b4a8f4ed Some changes to the undocumented location Lua API
- Remove parse_direction and write_direction; instead just always require directions as strings
- Remove zero, as it's pointless - just use {0,0}
- Add vector_diff
2017-03-20 12:00:22 +11:00

40 lines
1.2 KiB
C++

/*
Copyright (C) 2014 - 2017 by Chris Beck <render787@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#ifndef LUA_MAP_LOCATION_OPS_HPP_INCLUDED
#define LUA_MAP_LOCATION_OPS_HPP_INCLUDED
/**
* This namespace contains the implementations for wesnoth's
* lua bindings for the C++ map location operations.
*/
struct lua_State;
namespace lua_map_location {
int intf_get_direction(lua_State*);
int intf_vector_sum(lua_State*);
int intf_vector_diff(lua_State*);
int intf_vector_negation(lua_State*);
int intf_rotate_right_around_center(lua_State*);
int intf_tiles_adjacent(lua_State*);
int intf_get_adjacent_tiles(lua_State*);
int intf_distance_between(lua_State*);
int intf_get_in_basis_N_NE(lua_State*);
int intf_get_relative_dir(lua_State*);
} // end namespace lua_map_location
#endif