[Commits] [wesnoth/wesnoth] ac59b0: resources::game_map is const *, move functionality...

GitHub noreply at github.com
Mon Jun 2 05:20:07 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ac59b0d0e72c706a6e14fe59cb77ceaabcc7bce2
      https://github.com/wesnoth/wesnoth/commit/ac59b0d0e72c706a6e14fe59cb77ceaabcc7bce2
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-06-02 (Mon, 02 Jun 2014)

  Changed paths:
    M src/actions/vision.cpp
    M src/ai/contexts.cpp
    M src/ai/contexts.hpp
    M src/ai/default/ai.cpp
    M src/ai/default/contexts.cpp
    M src/ai/testing/aspect_attacks.cpp
    M src/ai/testing/ca.cpp
    M src/ai/testing/ca_testing_move_to_targets.cpp
    M src/game_board.cpp
    M src/game_board.hpp
    M src/game_events/action_wml.cpp
    M src/map_location.cpp
    M src/movetype.cpp
    M src/resources.cpp
    M src/resources.hpp
    M src/scripting/lua.cpp

  Log Message:
  -----------
  resources::game_map is const *, move functionality to game_board

This commit changes the resources::game_map pointer to a const *,
so that changes to the game_map coming from lua or wml apis must
go through the game_board. Three functions were moved into the
game_board -- although substantively they did not change, there
were minor changes, in terms of the kind of error reporting done,
and also in how gui refresh orders are issued afterwards. In
testing the differences due to this refactor don't seem to be
noticeable.


  Commit: dd1f1cc748539675e6bd021bbfadb91bac430551
      https://github.com/wesnoth/wesnoth/commit/dd1f1cc748539675e6bd021bbfadb91bac430551
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-06-02 (Mon, 02 Jun 2014)

  Changed paths:
    M src/actions/vision.cpp
    M src/ai/contexts.cpp
    M src/ai/contexts.hpp
    M src/ai/default/ai.cpp
    M src/ai/default/contexts.cpp
    M src/ai/testing/aspect_attacks.cpp
    M src/ai/testing/ca.cpp
    M src/ai/testing/ca_testing_move_to_targets.cpp
    M src/game_board.cpp
    M src/game_board.hpp
    M src/game_events/action_wml.cpp
    M src/map_location.cpp
    M src/movetype.cpp
    M src/resources.cpp
    M src/resources.hpp
    M src/scripting/lua.cpp

  Log Message:
  -----------
  Merge branch 'restrict_game_map'


Compare: https://github.com/wesnoth/wesnoth/compare/2349cf1981bf...dd1f1cc74853


More information about the Commits mailing list