[Commits] [wesnoth/wesnoth] 06de10: Generalizing the FAI concept of action objects

GitHub noreply at github.com
Mon Apr 3 05:03:20 UTC 2017


  Branch: refs/heads/wfl_action_callable
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 06de10fba217cc539ba90a708d93a55e1e507355
      https://github.com/wesnoth/wesnoth/commit/06de10fba217cc539ba90a708d93a55e1e507355
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

  Changed paths:
    M src/ai/default/attack.cpp
    M src/ai/default/contexts.hpp
    M src/ai/formula/ai.cpp
    M src/ai/formula/ai.hpp
    M src/ai/formula/callable_objects.cpp
    M src/ai/formula/callable_objects.hpp
    M src/formula/callable.hpp
    M src/formula/callable_objects.cpp
    M src/formula/callable_objects.hpp
    M src/formula/variant.cpp
    M src/formula/variant.hpp

  Log Message:
  -----------
  Generalizing the FAI concept of action objects


  Commit: 9ec2403a460578fe8b9608a82bb7e392373da54b
      https://github.com/wesnoth/wesnoth/commit/9ec2403a460578fe8b9608a82bb7e392373da54b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

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

  Log Message:
  -----------
  Implement WFL function symbol table inheritance

This also adds a new intermediary "action" function table between the
FormulaAI function table and the builtins function table.

This "actions" function table could be used in other areas of the code
where action objects are desired, for example in scenario events or
in the GUI2 Canvas.


  Commit: 5767ca4dc73689f79e4bae73d28d5943eccf797d
      https://github.com/wesnoth/wesnoth/commit/5767ca4dc73689f79e4bae73d28d5943eccf797d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

  Changed paths:
    M src/formula/debugger.cpp
    M src/formula/debugger.hpp

  Log Message:
  -----------
  Fix bug in formula debugger

The debugger used a deque, but added elements to it while iterating over it.
Since it didn't rely on the random access property, I simply replaced it with list.

Also, there was an incorrect use of erase().


Compare: https://github.com/wesnoth/wesnoth/compare/547ee7bcf27f...5767ca4dc736


More information about the Commits mailing list