[Commits] [wesnoth/wesnoth] 104ccf: Remove obsolete class from FormulaAI

GitHub noreply at github.com
Sat Apr 2 13:40:53 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 104ccf6e36bc13db26aaecf884c378e3bd28d3e9
      https://github.com/wesnoth/wesnoth/commit/104ccf6e36bc13db26aaecf884c378e3bd28d3e9
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/ai/formula/ai.cpp
    M src/ai/formula/ai.hpp
    M src/ai/formula/candidates.cpp
    M src/ai/formula/candidates.hpp

  Log Message:
  -----------
  Remove obsolete class from FormulaAI

This class appears to stem from the days when FormulaAI was implemented as a separate AI algorithm,
rather than as an engine of the composite AI. Apart from one function which didn't access anything in
the class (and has been moved elsewhere), the class was entirely unused.


  Commit: ca382018b7a9b5b744f0669bf1442a30ead63c15
      https://github.com/wesnoth/wesnoth/commit/ca382018b7a9b5b744f0669bf1442a30ead63c15
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/about.cpp
    M src/actions/attack.cpp
    M src/actions/create.cpp
    M src/actions/heal.cpp
    M src/actions/move.cpp
    M src/actions/undo.cpp
    M src/actions/undo_action.cpp
    M src/actions/unit_creator.cpp
    M src/actions/vision.cpp
    M src/addon/info.cpp
    M src/addon/manager.cpp
    M src/addon/manager_ui.cpp
    M src/addon/validation.cpp
    M src/ai/composite/ai.cpp
    M src/ai/composite/aspect.hpp
    M src/ai/composite/component.cpp
    M src/ai/composite/goal.cpp
    M src/ai/composite/property_handler.hpp
    M src/ai/configuration.cpp
    M src/ai/contexts.cpp
    M src/ai/default/ca.cpp
    M src/ai/default/recruitment.cpp
    M src/ai/default/recruitment.hpp
    M src/ai/default/stage_rca.cpp
    M src/ai/formula/ai.cpp
    M src/ai/formula/candidates.cpp
    M src/ai/formula/function_table.cpp
    M src/ai/manager.cpp
    M src/arrow.cpp
    M src/campaign_server/addon_utils.cpp
    M src/campaign_server/blacklist.cpp
    M src/campaign_server/campaign_server.cpp
    M src/carryover.cpp
    M src/commandline_options.cpp
    M src/config.cpp
    M src/config_cache.cpp
    M src/controller_base.cpp
    M src/dialogs.cpp
    M src/display.cpp
    M src/display_chat_manager.cpp
    M src/display_context.cpp
    M src/editor/action/action.cpp
    M src/editor/action/action_select.cpp
    M src/editor/controller/editor_controller.cpp
    M src/editor/editor_preferences.cpp
    M src/editor/map/context_manager.cpp
    M src/editor/map/editor_map.cpp
    M src/editor/map/map_context.cpp
    M src/editor/map/map_fragment.cpp
    M src/editor/palette/editor_palettes.cpp
    M src/editor/palette/editor_palettes.hpp
    M src/editor/palette/item_palette.cpp
    M src/editor/palette/palette_manager.cpp
    M src/editor/palette/terrain_palettes.cpp
    M src/editor/palette/unit_palette.cpp
    M src/editor/toolkit/brush.cpp
    M src/editor/toolkit/editor_toolkit.cpp
    M src/filesystem_boost.cpp
    M src/font.cpp
    M src/formula/formula.cpp
    M src/formula/function.cpp
    M src/game_board.cpp
    M src/game_config.cpp
    M src/game_config_manager.cpp
    M src/game_display.cpp
    M src/game_events/action_wml.cpp
    M src/game_events/conditional_wml.cpp
    M src/game_events/handlers.cpp
    M src/game_events/manager.cpp
    M src/game_events/manager_impl.cpp
    M src/game_events/pump.cpp
    M src/game_events/wmi_container.cpp
    M src/game_initialization/configure_engine.cpp
    M src/game_initialization/connect_engine.cpp
    M src/game_initialization/create_engine.cpp
    M src/game_initialization/flg_manager.cpp
    M src/game_initialization/mp_game_utils.cpp
    M src/game_initialization/mp_options.cpp
    M src/game_initialization/multiplayer.cpp
    M src/game_initialization/multiplayer_configure.cpp
    M src/game_initialization/multiplayer_connect.cpp
    M src/game_initialization/multiplayer_create.cpp
    M src/game_initialization/multiplayer_lobby.cpp
    M src/game_initialization/multiplayer_ui.cpp
    M src/game_initialization/multiplayer_wait.cpp
    M src/game_initialization/playcampaign.cpp
    M src/game_launcher.cpp
    M src/game_preferences.cpp
    M src/game_state.cpp
    M src/generators/cave_map_generator.cpp
    M src/generators/default_map_generator_job.cpp
    M src/generators/lua_map_generator.cpp
    M src/gettext_boost.cpp
    M src/gui/dialogs/advanced_graphics_options.cpp
    M src/gui/dialogs/editor/set_starting_position.cpp
    M src/gui/dialogs/lobby/lobby.cpp
    M src/gui/dialogs/multiplayer/mp_alerts_options.cpp
    M src/gui/widgets/grid_private.hpp
    M src/gui/widgets/list.cpp
    M src/help/help_impl.cpp
    M src/help/help_topic_generators.cpp
    M src/hotkey/command_executor.cpp
    M src/hotkey/hotkey_command.cpp
    M src/hotkey/hotkey_item.cpp
    M src/image.cpp
    M src/image_modifications.cpp
    M src/language.cpp
    M src/leader_scroll_dialog.cpp
    M src/log.cpp
    M src/log_windows.cpp
    M src/map/label.cpp
    M src/map/map.cpp
    M src/menu_events.cpp
    M src/minimap.cpp
    M src/mouse_events.cpp
    M src/movetype.cpp
    M src/mp_game_settings.cpp
    M src/pathfind/pathfind.cpp
    M src/pathfind/teleport.cpp
    M src/pathutils.cpp
    M src/persist_manager.cpp
    M src/play_controller.cpp
    M src/playmp_controller.cpp
    M src/playsingle_controller.cpp
    M src/playturn.cpp
    M src/preferences_display.cpp
    M src/quit_confirmation.cpp
    M src/recall_list_manager.cpp
    M src/replay.cpp
    M src/replay_controller.cpp
    M src/replay_recorder_base.cpp
    M src/reports.cpp
    M src/save_index.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_api.cpp
    M src/scripting/lua_common.cpp
    M src/scripting/lua_common.hpp
    M src/scripting/lua_race.cpp
    M src/scripting/lua_team.cpp
    M src/scripting/lua_unit_type.cpp
    M src/scripting/push_check.hpp
    M src/serialization/parser.cpp
    M src/serialization/preprocessor.cpp
    M src/serialization/schema_validator.cpp
    M src/serialization/unicode.cpp
    M src/server/ban.cpp
    M src/server/game.cpp
    M src/server/room_manager.cpp
    M src/server/server.cpp
    M src/side_filter.cpp
    M src/sound.cpp
    M src/statistics.cpp
    M src/storyscreen/controller.cpp
    M src/storyscreen/render.cpp
    M src/synced_commands.cpp
    M src/synced_user_choice.cpp
    M src/syncmp_handler.cpp
    M src/team.cpp
    M src/teambuilder.cpp
    M src/terrain/builder.cpp
    M src/terrain/filter.cpp
    M src/terrain/terrain.cpp
    M src/tests/create_images.cpp
    M src/tests/gui/test_gui2.cpp
    M src/tests/test_addons.cpp
    M src/tests/test_config.cpp
    M src/tests/test_filesystem.cpp
    M src/tests/test_mp_connect.cpp
    M src/tests/test_whiteboard_side_actions.cpp
    M src/text.cpp
    M src/time_of_day.cpp
    M src/tod_manager.cpp
    M src/tools/exploder_cutter.cpp
    M src/tools/schema/tag.cpp
    M src/tools/sdl2/sdl2.cpp
    M src/tooltips.cpp
    M src/tracer.cpp
    M src/units/abilities.cpp
    M src/units/animation.cpp
    M src/units/attack_type.cpp
    M src/units/drawer.cpp
    M src/units/filter.cpp
    M src/units/formula_manager.cpp
    M src/units/map.cpp
    M src/units/types.cpp
    M src/units/udisplay.cpp
    M src/units/unit.cpp
    M src/units/unit.hpp
    M src/utils/iterable_pair.hpp
    M src/utils/smart_list.hpp
    M src/variable.cpp
    M src/video.cpp
    M src/wesmage/filter.cpp
    M src/wesmage/options.cpp
    M src/wesmage/wesmage.cpp
    M src/wesnoth.cpp
    M src/whiteboard/highlighter.cpp
    M src/whiteboard/manager.cpp
    M src/whiteboard/mapbuilder.cpp
    M src/whiteboard/move.cpp
    M src/whiteboard/recall.cpp
    M src/whiteboard/side_actions.cpp
    M src/whiteboard/utility.cpp

  Log Message:
  -----------
  BOOST_FOREACH -> range for


  Commit: fe818f80051ece8f1fb084fd9e5bc072a7cd1188
      https://github.com/wesnoth/wesnoth/commit/fe818f80051ece8f1fb084fd9e5bc072a7cd1188
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M changelog
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/tod_manager.cpp
    M src/tod_manager.hpp

  Log Message:
  -----------
  Add Lua API function to set the current time of day


  Commit: bfc6744b03c01c3bf7440a073f9c6f6e399dae02
      https://github.com/wesnoth/wesnoth/commit/bfc6744b03c01c3bf7440a073f9c6f6e399dae02
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/gui/dialogs/loadscreen.cpp
    M src/gui/dialogs/loadscreen.hpp

  Log Message:
  -----------
  Workaround for MSVC2013's buggy atomic


  Commit: 4d1c9bdd437cc4a9e3cb2ea2c2cc01abf1b27316
      https://github.com/wesnoth/wesnoth/commit/4d1c9bdd437cc4a9e3cb2ea2c2cc01abf1b27316
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
    M src/scripting/game_lua_kernel.cpp
    A src/scripting/lua_formula_bridge.cpp
    A src/scripting/lua_formula_bridge.hpp

  Log Message:
  -----------
  Add wesnoth.eval_formula which compiles and evaluates a formula in the formula engine


  Commit: 38198e915172edb64c9d43b76168b72cfc860953
      https://github.com/wesnoth/wesnoth/commit/38198e915172edb64c9d43b76168b72cfc860953
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/formula/callable_objects.cpp
    M src/formula/callable_objects.hpp
    M src/formula/formula.cpp
    M src/formula/formula.hpp
    M src/scripting/lua_formula_bridge.cpp

  Log Message:
  -----------
  Move config_callable to callable_objects.hpp and add a comparator function


  Commit: ac4479090fef362bd491d72ee011619700dc21eb
      https://github.com/wesnoth/wesnoth/commit/ac4479090fef362bd491d72ee011619700dc21eb
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/scripting/lua_formula_bridge.cpp

  Log Message:
  -----------
  Add a comparator function for lua_callable


  Commit: 5bb6c30b057d8b78363867e178d525123d4d698a
      https://github.com/wesnoth/wesnoth/commit/5bb6c30b057d8b78363867e178d525123d4d698a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_formula_bridge.cpp
    M src/scripting/lua_formula_bridge.hpp
    M src/scripting/lua_types.cpp
    M src/scripting/lua_types.hpp

  Log Message:
  -----------
  Lua API: Add wesnoth.compile_formula which returns a callable userdata


  Commit: 5fdad345f243d7d9a7a72fe24c7e31dc24ff3cab
      https://github.com/wesnoth/wesnoth/commit/5fdad345f243d7d9a7a72fe24c7e31dc24ff3cab
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/ai/formula/ai.cpp
    M src/ai/formula/function_table.cpp
    M src/ai/formula/function_table.hpp
    M src/formula/formula.cpp
    M src/formula/function.cpp
    M src/formula/function.hpp

  Log Message:
  -----------
  Formula engine: Generalize system of defining and instantiating functions


  Commit: b503b6cfe107720f9f05e497cb9158e526e3cbf8
      https://github.com/wesnoth/wesnoth/commit/b503b6cfe107720f9f05e497cb9158e526e3cbf8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M src/scripting/lua_formula_bridge.cpp

  Log Message:
  -----------
  Lua formula bridge now recognizes location objects


  Commit: cc7c1247445ea484a2e43f931f6a95ed8c1ed4fb
      https://github.com/wesnoth/wesnoth/commit/cc7c1247445ea484a2e43f931f6a95ed8c1ed4fb
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
    M src/ai/formula/ai.cpp
    M src/ai/formula/function_table.cpp
    M src/ai/formula/function_table.hpp
    M src/formula/callable_objects.cpp
    M src/formula/callable_objects.hpp
    M src/formula/formula.cpp
    M src/formula/formula.hpp
    M src/formula/function.cpp
    M src/formula/function.hpp
    M src/scripting/game_lua_kernel.cpp
    A src/scripting/lua_formula_bridge.cpp
    A src/scripting/lua_formula_bridge.hpp
    M src/scripting/lua_types.cpp
    M src/scripting/lua_types.hpp

  Log Message:
  -----------
  Merge branch 'lua_formula_bridge'

Allows calling WFL code from Lua


  Commit: 5c9923dabaf2806e0ba45708a958f64f94f9a316
      https://github.com/wesnoth/wesnoth/commit/5c9923dabaf2806e0ba45708a958f64f94f9a316
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M changelog
    M src/formula/function.cpp
    M src/formula/function.hpp

  Log Message:
  -----------
  Formula engine: Add pair() function


  Commit: 0688e6df8f9ecf3c589da916fbd2e41b952f146d
      https://github.com/wesnoth/wesnoth/commit/0688e6df8f9ecf3c589da916fbd2e41b952f146d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M changelog
    M src/formula/callable_objects.cpp
    M src/formula/callable_objects.hpp

  Log Message:
  -----------
  Formula engine: Expose WML unit/side variables


Compare: https://github.com/wesnoth/wesnoth/compare/adb0abfb6dec...0688e6df8f9e


More information about the Commits mailing list