[Commits] [wesnoth/wesnoth] a84500: Add functions for transferring map locations to an...
GitHub
noreply at github.com
Wed Mar 16 19:50:13 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: a84500fb8fa9a2baa4d44ed6402787d78e331474
https://github.com/wesnoth/wesnoth/commit/a84500fb8fa9a2baa4d44ed6402787d78e331474
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M src/ai/lua/core.cpp
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_common.cpp
M src/scripting/lua_common.hpp
M src/scripting/push_check.hpp
Log Message:
-----------
Add functions for transferring map locations to and from Lua stack
This also changes nearly all API functions taking locations to use the new functions.
As a result, these functions can now accept their location arguments in any of three formats:
- An array of two integers
- A table with x and y keys
- Two separate, consecutive integer arguments
Functions that return locations mostly still use whatever format they used before.
This is because changing return values is a more compatibility-breaking change.
This temporarily breaks compatibiliy for the following AI functions:
- ai.get_targets()
- ai.get_avoid()
- ai.get_attacks()
Commit: 058ec266cf896681540cc2c72766263efc1192fa
https://github.com/wesnoth/wesnoth/commit/058ec266cf896681540cc2c72766263efc1192fa
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Re-enable/fix put_unit deprecation warning
Commit: d250e04566331c6bb4d3369b41649b8eec224c88
https://github.com/wesnoth/wesnoth/commit/d250e04566331c6bb4d3369b41649b8eec224c88
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M src/scripting/lua_common.cpp
Log Message:
-----------
Now luaW_tolocation accepts units and vconfigs
Commit: 2e6ad2bee3290dea4028da250801248f75f8e44a
https://github.com/wesnoth/wesnoth/commit/2e6ad2bee3290dea4028da250801248f75f8e44a
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M data/lua/wml/object.lua
M src/scripting/game_lua_kernel.cpp
M src/scripting/game_lua_kernel.hpp
Log Message:
-----------
Add wesnoth.select_unit(), deprecate wesnoth.select_hex()
wesnoth.select_unit() is also callable as u:select() where u is a unit
Commit: 46cee1df681777c9af60bd29307425c23d134460
https://github.com/wesnoth/wesnoth/commit/46cee1df681777c9af60bd29307425c23d134460
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Allow wesnoth.match_unit to take a location, for hypothetical matches
Commit: afcb382009a69d4fc639086fe9e4f446c745f4b3
https://github.com/wesnoth/wesnoth/commit/afcb382009a69d4fc639086fe9e4f446c745f4b3
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M src/scripting/lua_map_location_ops.cpp
Log Message:
-----------
Replace Lua map_location helpers with new luaW functions
This does change the interface and return values of several functions.
However, these functions were undocumented, so this shoud not be a problem.
Commit: df7cdba42cc2219fff1ce6519fcc398b16a8fada
https://github.com/wesnoth/wesnoth/commit/df7cdba42cc2219fff1ce6519fcc398b16a8fada
Author: Celtic Minstrel <CelticMinstrel at users.noreply.github.com>
Date: 2016-03-16 (Wed, 16 Mar 2016)
Changed paths:
M data/lua/wml/object.lua
M src/ai/lua/core.cpp
M src/scripting/game_lua_kernel.cpp
M src/scripting/game_lua_kernel.hpp
M src/scripting/lua_common.cpp
M src/scripting/lua_common.hpp
M src/scripting/lua_map_location_ops.cpp
M src/scripting/push_check.hpp
Log Message:
-----------
Merge pull request #628 from CelticMinstrel/lua_map_locations
Several location-related Lua things
Compare: https://github.com/wesnoth/wesnoth/compare/268620e2cac3...df7cdba42cc2
More information about the Commits
mailing list