[Commits] [wesnoth/wesnoth] 597089: Refactor some duplicate code in Lua API

GitHub noreply at github.com
Fri Aug 12 18:04:40 UTC 2016


  Branch: refs/heads/lua_refactor
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 597089bf0e38989cb988ff97b1cedcccdf930dba
      https://github.com/wesnoth/wesnoth/commit/597089bf0e38989cb988ff97b1cedcccdf930dba
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M src/scripting/lua_api.cpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Refactor some duplicate code in Lua API


  Commit: fadec83d83bf845b0dc6191c0b6f1cadcf518e09
      https://github.com/wesnoth/wesnoth/commit/fadec83d83bf845b0dc6191c0b6f1cadcf518e09
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
    M src/ai/default/aspect_attacks.cpp
    M src/ai/lua/core.cpp
    M src/ai/lua/lua_object.hpp
    M src/scripting/application_lua_kernel.cpp
    M src/scripting/game_lua_kernel.cpp
    R src/scripting/lua_api.cpp
    R src/scripting/lua_api.hpp
    M src/scripting/lua_common.cpp
    M src/scripting/lua_common.hpp
    M src/scripting/lua_fileops.cpp
    M src/scripting/lua_formula_bridge.cpp
    M src/scripting/lua_gui2.cpp
    M src/scripting/lua_pathfind_cost_calculator.hpp
    A src/scripting/lua_unit.cpp
    A src/scripting/lua_unit.hpp
    M src/scripting/mapgen_lua_kernel.cpp

  Log Message:
  -----------
  Move Lua unit wrapper to own file


  Commit: 116c6975281390e4009ecbb2d6501d3fc91d8ebf
      https://github.com/wesnoth/wesnoth/commit/116c6975281390e4009ecbb2d6501d3fc91d8ebf
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_common.cpp
    M src/scripting/lua_common.hpp
    M src/scripting/lua_formula_bridge.cpp
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_race.cpp
    M src/scripting/lua_rng.cpp
    M src/scripting/lua_unit.cpp

  Log Message:
  -----------
  Implement Lua placement new


  Commit: aa11ab412029afd6677c05a744ec7680b255711a
      https://github.com/wesnoth/wesnoth/commit/aa11ab412029afd6677c05a744ec7680b255711a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M src/ai/default/aspect_attacks.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_formula_bridge.cpp
    M src/scripting/lua_unit.cpp
    M src/scripting/lua_unit.hpp

  Log Message:
  -----------
  Extract Lua unit push code into a function


  Commit: 70ea4932f5372289a447a54fb1ec09b41b2cf601
      https://github.com/wesnoth/wesnoth/commit/70ea4932f5372289a447a54fb1ec09b41b2cf601
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_unit.cpp
    M src/scripting/lua_unit.hpp

  Log Message:
  -----------
  Avoid luaW_hasmetatable when checking for units


  Commit: f6c738b61388c9c48ba905419e505b591876dd1f
      https://github.com/wesnoth/wesnoth/commit/f6c738b61388c9c48ba905419e505b591876dd1f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Fix bug in wesnoth.put_unit


  Commit: 013b58b2e8a698d566addb4477684769cf3db5ae
      https://github.com/wesnoth/wesnoth/commit/013b58b2e8a698d566addb4477684769cf3db5ae
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-11 (Thu, 11 Aug 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_unit.cpp
    M src/scripting/lua_unit.hpp

  Log Message:
  -----------
  Move unit metatable stuff into lua_unit file


  Commit: 7e1fbc6d6d3265a6dc5122f97e8039a078ef6aba
      https://github.com/wesnoth/wesnoth/commit/7e1fbc6d6d3265a6dc5122f97e8039a078ef6aba
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-12 (Fri, 12 Aug 2016)

  Changed paths:
    M projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_unit.cpp
    A src/scripting/lua_unit_attacks.cpp
    A src/scripting/lua_unit_attacks.hpp
    M src/scripting/lua_unit_type.cpp

  Log Message:
  -----------
  Move Lua unit attacks metatable to own file


  Commit: 7ce8424811ef461de84faa8c810cf640de32a811
      https://github.com/wesnoth/wesnoth/commit/7ce8424811ef461de84faa8c810cf640de32a811
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-12 (Fri, 12 Aug 2016)

  Changed paths:
    M src/scripting/lua_unit_attacks.cpp

  Log Message:
  -----------
  Fix Lua attacks metatable not working for attacks obtained from unit_type


  Commit: 4bb5d2c1a7e4046abf78f9bb6b994417828a1def
      https://github.com/wesnoth/wesnoth/commit/4bb5d2c1a7e4046abf78f9bb6b994417828a1def
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-12 (Fri, 12 Aug 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Use luaW_pushunit when getting lists of units


  Commit: de72becbe5dd98bbe87c0dcb786308d2f5dcdede
      https://github.com/wesnoth/wesnoth/commit/de72becbe5dd98bbe87c0dcb786308d2f5dcdede
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-08-12 (Fri, 12 Aug 2016)

  Changed paths:
    M projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
    M src/ai/contexts.cpp
    M src/ai/lua/core.cpp
    M src/ai/lua/lua_object.cpp
    M src/config.cpp
    M src/game_initialization/mp_options.cpp
    M src/map/label.cpp
    M src/map/label.hpp
    M src/pathfind/pathfind.cpp
    M src/play_controller.cpp
    M src/play_controller.hpp
    M src/scripting/application_lua_kernel.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_common.cpp
    M src/scripting/lua_common.hpp
    M src/scripting/lua_formula_bridge.cpp
    M src/scripting/lua_gui2.cpp
    M src/scripting/lua_kernel_base.cpp
    R src/scripting/lua_types.cpp
    R src/scripting/lua_types.hpp
    M src/scripting/lua_unit.cpp
    M src/scripting/lua_unit.hpp
    M src/scripting/lua_unit_attacks.cpp
    M src/units/unit.cpp
    M src/units/unit.hpp

  Log Message:
  -----------
  Reduce use of const_cast


Compare: https://github.com/wesnoth/wesnoth/compare/597089bf0e38^...de72becbe5dd


More information about the Commits mailing list