[Commits] [wesnoth/wesnoth] ab23b0: move actions::unit_can_move to be a method of disp...

GitHub noreply at github.com
Tue Jun 17 02:11:45 UTC 2014


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

  Changed paths:
    M src/actions/move.cpp
    M src/actions/move.hpp
    M src/display_context.cpp
    M src/display_context.hpp
    M src/menu_events.cpp
    M src/mouse_events.cpp
    M src/unit.cpp

  Log Message:
  -----------
  move actions::unit_can_move to be a method of display_context::

I would have put it in game board but it needs to be available
to display / drawing code... would be good to refactor to simplify
this.


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

  Changed paths:
    M projectfiles/CodeBlocks-SCons/wesnoth.cbp
    M projectfiles/CodeBlocks/wesnoth.cbp
    M projectfiles/VC9/wesnoth.vcproj
    M src/CMakeLists.txt
    M src/SConscript
    M src/display.cpp
    M src/display.hpp
    M src/display_context.cpp
    M src/display_context.hpp
    A src/drawable_unit.cpp
    A src/drawable_unit.hpp
    M src/game_display.cpp
    M src/unit.cpp
    M src/unit.hpp
    M src/unit_animation.hpp

  Log Message:
  -----------
  add drawable unit class

drawable unit inherits from unit, and implements the draw function,
used only by the display. when the display wants to use the function,
it casts a unit pointer to a drawable_unit, and draws it. this
improves encapsulation.


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

  Changed paths:
    M projectfiles/CodeBlocks-SCons/wesnoth.cbp
    M projectfiles/CodeBlocks/wesnoth.cbp
    M projectfiles/VC9/wesnoth.vcproj
    M src/CMakeLists.txt
    M src/SConscript
    M src/actions/move.cpp
    M src/actions/move.hpp
    M src/display.cpp
    M src/display.hpp
    M src/display_context.cpp
    M src/display_context.hpp
    A src/drawable_unit.cpp
    A src/drawable_unit.hpp
    M src/game_display.cpp
    M src/menu_events.cpp
    M src/mouse_events.cpp
    M src/unit.cpp
    M src/unit.hpp
    M src/unit_animation.hpp

  Log Message:
  -----------
  Merge branch 'drawable_units'


Compare: https://github.com/wesnoth/wesnoth/compare/f80f7104d2af...f0fc9ff5c7a8


More information about the Commits mailing list