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

GitHub noreply at github.com
Mon Apr 3 05:08:31 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c2ba1c5c6f93204a945006e731a50e63180c9d3e
      https://github.com/wesnoth/wesnoth/commit/c2ba1c5c6f93204a945006e731a50e63180c9d3e
  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: aedf953d285d319031e83272ff3d93c89d0bf2e9
      https://github.com/wesnoth/wesnoth/commit/aedf953d285d319031e83272ff3d93c89d0bf2e9
  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: f12696d3d2b1317ac87cb152c9c45f33eb3b1f79
      https://github.com/wesnoth/wesnoth/commit/f12696d3d2b1317ac87cb152c9c45f33eb3b1f79
  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/f6800c60251f...f12696d3d2b1


More information about the Commits mailing list