[wesnoth-commits] [wesnoth/wesnoth] ff3e82: Add enum_base::get_enum(unsigned long) for convert...

Steve Cotton noreply at github.com
Fri Mar 4 03:23:13 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ff3e823960ac88dc83cbc9117118294c52c7d4ed
      https://github.com/wesnoth/wesnoth/commit/ff3e823960ac88dc83cbc9117118294c52c7d4ed
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/string_enums/enum_base.hpp

  Log Message:
  -----------
  Add enum_base::get_enum(unsigned long) for converting to the equivalent enum.

Also some other improvements.


  Commit: f4e4bf6b49f44ffe4fe88f3816c71d73f90134b4
      https://github.com/wesnoth/wesnoth/commit/f4e4bf6b49f44ffe4fe88f3816c71d73f90134b4
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/playturn.cpp
    M src/team.cpp

  Log Message:
  -----------
  Fix existing code that was relying on implicit string conversion.


  Commit: c4c292fa3bc01e0a39ae9fa73ae1b88c60e758d5
      https://github.com/wesnoth/wesnoth/commit/c4c292fa3bc01e0a39ae9fa73ae1b88c60e758d5
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M projectfiles/CodeBlocks-SCons/wesnoth.cbp
    M projectfiles/CodeBlocks/tests.cbp
    M projectfiles/CodeBlocks/wesnoth.cbp
    M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
    M source_lists/boost_unit_tests
    M source_lists/libwesnoth
    M src/actions/attack.cpp
    M src/actions/attack.hpp
    A src/ai/ai_target.hpp
    M src/ai/composite/goal.cpp
    M src/ai/contexts.cpp
    M src/ai/default/ca_move_to_targets.cpp
    M src/ai/default/contexts.cpp
    M src/ai/default/contexts.hpp
    M src/ai/lua/core.cpp
    M src/ai/lua/lua_object.hpp
    A src/campaign_type.hpp
    M src/config.hpp
    M src/config_attribute_value.hpp
    A src/defeat_condition.hpp
    M src/editor/map/map_context.cpp
    M src/editor/map/map_context.hpp
    A src/enum_base.hpp
    M src/formula/callable_objects.cpp
    A src/formula/formula_variant.hpp
    M src/formula/variant.cpp
    M src/formula/variant.hpp
    M src/formula/variant_value.hpp
    M src/game_board.cpp
    M src/game_board.hpp
    M src/game_classification.cpp
    M src/game_classification.hpp
    M src/game_end_exceptions.cpp
    M src/game_end_exceptions.hpp
    A src/game_initialization/component_availability.hpp
    M src/game_initialization/configure_engine.cpp
    M src/game_initialization/configure_engine.hpp
    M src/game_initialization/connect_engine.cpp
    M src/game_initialization/create_engine.cpp
    M src/game_initialization/create_engine.hpp
    M src/game_initialization/depcheck.cpp
    M src/game_initialization/depcheck.hpp
    A src/game_initialization/level_type.hpp
    M src/game_initialization/lobby_data.cpp
    M src/game_initialization/mp_game_utils.cpp
    M src/game_initialization/multiplayer.cpp
    M src/game_initialization/playcampaign.cpp
    M src/game_initialization/playcampaign.hpp
    A src/game_initialization/random_faction_mode.hpp
    A src/game_initialization/saved_game_mode.hpp
    M src/game_initialization/singleplayer.cpp
    M src/game_launcher.cpp
    M src/game_launcher.hpp
    M src/game_state.cpp
    M src/gui/core/placer.cpp
    M src/gui/core/placer.hpp
    M src/gui/dialogs/addon/manager.cpp
    M src/gui/dialogs/addon/manager.hpp
    M src/gui/dialogs/campaign_selection.cpp
    M src/gui/dialogs/editor/edit_side.cpp
    M src/gui/dialogs/editor/edit_side.hpp
    M src/gui/dialogs/game_load.cpp
    M src/gui/dialogs/gamestate_inspector.cpp
    M src/gui/dialogs/multiplayer/mp_create_game.cpp
    M src/gui/dialogs/multiplayer/mp_create_game.hpp
    M src/gui/dialogs/multiplayer/mp_join_game.cpp
    M src/gui/dialogs/multiplayer/mp_staging.cpp
    M src/gui/dialogs/preferences_dialog.cpp
    M src/gui/dialogs/unit_create.cpp
    M src/gui/dialogs/unit_recall.cpp
    A src/gui/grow_direction.hpp
    A src/gui/sort_order.hpp
    M src/gui/widgets/addon_list.cpp
    M src/gui/widgets/addon_list.hpp
    M src/gui/widgets/listbox.cpp
    M src/gui/widgets/listbox.hpp
    M src/gui/widgets/pane.cpp
    M src/gui/widgets/pane.hpp
    M src/gui/widgets/unit_preview_pane.cpp
    M src/help/help_impl.cpp
    A src/level_result.hpp
    M src/lexical_cast.hpp
    M src/menu_events.cpp
    M src/mp_game_settings.cpp
    M src/mp_game_settings.hpp
    M src/playsingle_controller.cpp
    M src/playsingle_controller.hpp
    M src/playturn.cpp
    M src/preferences/general.cpp
    M src/preferences/general.hpp
    M src/reports.cpp
    M src/saved_game.cpp
    M src/savegame.cpp
    M src/scripting/application_lua_kernel.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_team.cpp
    M src/scripting/lua_unit.cpp
    M src/scripting/lua_unit_type.cpp
    A src/scripting/plugin_manager_status.hpp
    M src/scripting/plugins/manager.cpp
    M src/scripting/plugins/manager.hpp
    M src/scripting/push_check.hpp
    M src/server/wesnothd/game.cpp
    M src/server/wesnothd/game.hpp
    A src/side_controller.hpp
    A src/side_proxy_controller.hpp
    R src/string_enums/enum_base.hpp
    R src/string_enums/side_controller.hpp
    M src/team.cpp
    M src/team.hpp
    A src/team_shared_vision.hpp
    M src/terrain/filter.cpp
    M src/tests/test_irdya_date.cpp
    R src/tests/test_make_enum.cpp
    M src/tests/test_mp_connect.cpp
    M src/tod_manager.cpp
    R src/units/alignment.hpp
    M src/units/animation.cpp
    M src/units/animation.hpp
    M src/units/animation_component.cpp
    M src/units/animation_component.hpp
    A src/units/conditional_type.hpp
    M src/units/filter.cpp
    M src/units/filter.hpp
    A src/units/strike_result.hpp
    M src/units/types.cpp
    M src/units/types.hpp
    M src/units/udisplay.cpp
    M src/units/unit.cpp
    M src/units/unit.hpp
    A src/units/unit_alignments.hpp
    M src/utils/irdya_datetime.cpp
    M src/utils/irdya_datetime.hpp
    R src/utils/make_enum.cpp
    R src/utils/make_enum.hpp
    A src/utils/wesnoth_epoch.hpp

  Log Message:
  -----------
  Replace all remaining usages if MAKE_ENUM.


  Commit: e9272f79d81aa897871ce5b8af727839c3d0f226
      https://github.com/wesnoth/wesnoth/commit/e9272f79d81aa897871ce5b8af727839c3d0f226
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/game_initialization/create_engine.cpp
    M src/scripting/lua_team.cpp

  Log Message:
  -----------
  Remove duplicate code.


  Commit: 0f8c4318a849bddd6f344a0b89030bd2b27334a1
      https://github.com/wesnoth/wesnoth/commit/0f8c4318a849bddd6f344a0b89030bd2b27334a1
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/scripting/push_check.hpp

  Log Message:
  -----------
  Remove GCC version check - versions under 4.8.4 don't work anyway.


  Commit: afa9b7868781a1fbc06bfac97194006bdb061eae
      https://github.com/wesnoth/wesnoth/commit/afa9b7868781a1fbc06bfac97194006bdb061eae
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/gui/core/placer.cpp

  Log Message:
  -----------
  Throw exception instead of a string literal.


  Commit: 94ed780a6b4d9e6aac723fd98863cbcd749e4fa3
      https://github.com/wesnoth/wesnoth/commit/94ed780a6b4d9e6aac723fd98863cbcd749e4fa3
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/lexical_cast.hpp

  Log Message:
  -----------
  This is required to be defined as of C++11.


  Commit: 11b0d711f334f63274a6867d47c88a031081ada3
      https://github.com/wesnoth/wesnoth/commit/11b0d711f334f63274a6867d47c88a031081ada3
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/ai/ai_target.hpp
    M src/formula/formula_variant.hpp
    M src/gui/grow_direction.hpp
    M src/units/conditional_type.hpp

  Log Message:
  -----------
  Put namespaces on the string_enums that don't need .cpp changes to do so


  Commit: 50b5d6756717a90b4d07d4d90d156a72865e0bf1
      https://github.com/wesnoth/wesnoth/commit/50b5d6756717a90b4d07d4d90d156a72865e0bf1
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M src/game_initialization/create_engine.cpp
    M src/game_initialization/create_engine.hpp
    M src/tests/test_irdya_date.cpp
    M src/utils/irdya_datetime.cpp
    M src/utils/irdya_datetime.hpp
    M src/utils/wesnoth_epoch.hpp

  Log Message:
  -----------
  Add namespace to utils::irdya_datetime and utils::wesnoth_epoch

Add documentation for them too.


Compare: https://github.com/wesnoth/wesnoth/compare/0a3ab226b697...50b5d6756717



More information about the Commits mailing list