[Commits] [wesnoth/wesnoth] fe00d7: refactor tod_manager::set_turn, next_turn, accept ...

GitHub noreply at github.com
Fri Jun 13 05:19:21 UTC 2014


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

  Changed paths:
    M src/game_events/action_wml.cpp
    M src/menu_events.cpp
    M src/playsingle_controller.cpp
    M src/replay_controller.cpp
    M src/tod_manager.cpp
    M src/tod_manager.hpp

  Log Message:
  -----------
  refactor tod_manager::set_turn, next_turn, accept game_data arg

This improves encapsulation and almost allows to push resources
out of the tod_manager


  Commit: 8531ddeae59ef96bd3f91023fc6015ab85627690
      https://github.com/wesnoth/wesnoth/commit/8531ddeae59ef96bd3f91023fc6015ab85627690
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-06-13 (Fri, 13 Jun 2014)

  Changed paths:
    M src/editor/map/map_context.cpp
    M src/play_controller.cpp
    M src/tod_manager.cpp
    M src/tod_manager.hpp

  Log Message:
  -----------
  add gamemap argument to tod_manager::add_time_area(config &c)

This is needed to properly parse a list of locations from strings,
to have the dimensions available.

This allows to refactor tod_manager and not use resources:: ptrs
in its implementation, instead using the objects from the relevant
context.


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

  Changed paths:
    M changelog
    M src/font.cpp
    M src/game.cpp

  Log Message:
  -----------
  Merge branch 'master' of git://github.com/wesnoth/wesnoth


Compare: https://github.com/wesnoth/wesnoth/compare/75f1345ff235...b339cc217af7


More information about the Commits mailing list