Merge lp:~widelands-dev/widelands/bug-1675179-lua-hide-fields into lp:widelands
Proposed by
GunChleoc
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8339 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1675179-lua-hide-fields | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
120 lines (+47/-9) 4 files modified
src/logic/player.cc (+12/-6) src/logic/player.h (+5/-1) src/scripting/lua_game.cc (+6/-2) test/maps/lua_testsuite.wmf/scripting/gplayer.lua (+24/-0) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1675179-lua-hide-fields | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
kaputtnik (community) | testing | Approve | |
Review via email: mp+320981@code.launchpad.net |
Commit message
Added option to Lua function player:hide_fields to mark them as unexplored.
Description of the change
New Lua function for the Barbarians 3 scenario.
For testing, one can change the Empire 1 scenario like this:
-- Show the sea
p1:reveal_
local ship = p1:place_ship(sea)
sleep(1000)
p1:reveal_
sleep(4000)
p1:hide_
campaign_
-- Hide the sea after 5 seconds
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 2062. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 214787145. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1675179_ lua_hide_ fields- 1897.
Appveyor build 1897. State: success. Details: https:/