[Commits] [wesnoth/wesnoth] 13155c: separate fake units list from real units list

GitHub noreply at github.com
Mon Jun 16 21:34:10 UTC 2014


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

  Changed paths:
    M src/display.cpp
    M src/display.hpp
    M src/game_display.cpp
    M src/game_display.hpp

  Log Message:
  -----------
  separate fake units list from real units list

This is a first step before brnaching off to fake units manager


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

  Changed paths:
    M src/CMakeLists.txt
    M src/SConscript
    M src/ai/akihara/recruitment.cpp
    M src/display.cpp
    M src/display.hpp
    A src/fake_unit.cpp
    A src/fake_unit.hpp
    A src/fake_unit_manager.cpp
    A src/fake_unit_manager.hpp
    M src/game_display.cpp
    M src/game_display.hpp
    M src/game_events/action_wml.cpp
    M src/resources.cpp
    M src/resources.hpp
    M src/team.cpp
    M src/unit_display.cpp
    M src/unit_display.hpp
    M src/whiteboard/action.cpp
    M src/whiteboard/action.hpp
    M src/whiteboard/attack.cpp
    M src/whiteboard/highlighter.cpp
    M src/whiteboard/highlighter.hpp
    M src/whiteboard/manager.cpp
    M src/whiteboard/manager.hpp
    M src/whiteboard/move.cpp
    M src/whiteboard/move.hpp
    M src/whiteboard/recall.cpp
    M src/whiteboard/recall.hpp
    M src/whiteboard/recruit.cpp
    M src/whiteboard/recruit.hpp
    M src/whiteboard/typedefs.hpp

  Log Message:
  -----------
  add fake_unit_manager, split off from game_display object

This commit adds two classes -- fake_unit, and fake_unit_manager,
both split off from code contained in game_display. The display
object is reconfigured to hold a pointer to the manager and
display the units it contains. The rest of the code is configured
to add fake units to the manager, not the display.

This improves encapsulation and helps to reduce the game_display
class.


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

  Changed paths:
    M po/wesnoth-tutorial/de.po
    M src/preferences_display.cpp
    M src/saved_game.cpp
    M src/syncmp_handler.hpp
    M src/video.cpp

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


Compare: https://github.com/wesnoth/wesnoth/compare/c262876189e1...676529adf980


More information about the Commits mailing list