[Commits] [wesnoth/wesnoth] 3a8568: Multi-pack Wolves MAI: code cleanup

GitHub noreply at github.com
Tue Apr 15 15:15:42 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3a85688c601c66d1ea692ace7672d2b785723c40
      https://github.com/wesnoth/wesnoth/commit/3a85688c601c66d1ea692ace7672d2b785723c40
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-15 (Tue, 15 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_functions.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua

  Log Message:
  -----------
  Multi-pack Wolves MAI: code cleanup


  Commit: 6532fdbb4bbe04a16ef52f75dad5c36efed186f9
      https://github.com/wesnoth/wesnoth/commit/6532fdbb4bbe04a16ef52f75dad5c36efed186f9
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-15 (Tue, 15 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_hang_out.lua

  Log Message:
  -----------
  Hang-out Micro AI: code cleanup


  Commit: 85b36fd32fdebda58fa177667e3fda0904cbc387
      https://github.com/wesnoth/wesnoth/commit/85b36fd32fdebda58fa177667e3fda0904cbc387
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-15 (Tue, 15 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_recruit_random.lua

  Log Message:
  -----------
  Random Recruiting Micro AI: code cleanup


  Commit: 51251d48e150e4caf806fe4e8442f25d984f84a1
      https://github.com/wesnoth/wesnoth/commit/51251d48e150e4caf806fe4e8442f25d984f84a1
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-15 (Tue, 15 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_hunter.lua

  Log Message:
  -----------
  Hunter Micro AI: code cleanup


  Commit: a4ca7c164fec01da46d9ad1d12b05ede25946aaa
      https://github.com/wesnoth/wesnoth/commit/a4ca7c164fec01da46d9ad1d12b05ede25946aaa
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-15 (Tue, 15 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_bottleneck_attack.lua
    M data/ai/micro_ais/cas/ca_bottleneck_move.lua
    M data/ai/micro_ais/cas/ca_goto.lua
    M data/ai/micro_ais/cas/ca_messenger_attack.lua
    M data/ai/micro_ais/cas/ca_protect_unit_attack.lua
    M data/ai/micro_ais/cas/ca_protect_unit_finish.lua
    M data/ai/micro_ais/cas/ca_protect_unit_move.lua
    M data/ai/micro_ais/cas/ca_simple_attack.lua

  Log Message:
  -----------
  Micro AIs: prevent potential conflicts of stored data

It’s theoretically possible that different Micro AIs’ evaluation
functions store information in the same variable within self.data.
This would only happen if the CAs have the same score and while this
should generally be avoided when setting up a scenario, it is better to
ensure that it cannot cause conflicts (not in the stored data at least,
the MAIs might still interfere with each other in other respects).


Compare: https://github.com/wesnoth/wesnoth/compare/51d31196bc7c...a4ca7c164fec


More information about the Commits mailing list