[Commits] [wesnoth/wesnoth] c4cb61: Micro AIs: avoid using formula= in SUFs
GitHub
noreply at github.com
Thu Apr 10 17:06:44 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: c4cb6168e49ee036a944fcb00e96b390d1653eca
https://github.com/wesnoth/wesnoth/commit/c4cb6168e49ee036a944fcb00e96b390d1653eca
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-04-10 (Thu, 10 Apr 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/micro_ais/cas/ca_big_animals.lua
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_coward.lua
M data/ai/micro_ais/cas/ca_forest_animals_move.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusklet_move.lua
M data/ai/micro_ais/cas/ca_goto.lua
M data/ai/micro_ais/cas/ca_hang_out.lua
M data/ai/micro_ais/cas/ca_healer_move.lua
M data/ai/micro_ais/cas/ca_herding_attack_close_enemy.lua
M data/ai/micro_ais/cas/ca_herding_dog_move.lua
M data/ai/micro_ais/cas/ca_herding_herd_sheep.lua
M data/ai/micro_ais/cas/ca_herding_sheep_move.lua
M data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua
M data/ai/micro_ais/cas/ca_herding_sheep_runs_enemy.lua
M data/ai/micro_ais/cas/ca_hunter.lua
M data/ai/micro_ais/cas/ca_lurkers.lua
M data/ai/micro_ais/cas/ca_messenger_attack.lua
M data/ai/micro_ais/cas/ca_messenger_escort_move.lua
M data/ai/micro_ais/cas/ca_patrol.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_return_guardian.lua
M data/ai/micro_ais/cas/ca_simple_attack.lua
M data/ai/micro_ais/cas/ca_stationed_guardian.lua
M data/ai/micro_ais/cas/ca_swarm_scatter.lua
M data/ai/micro_ais/cas/ca_wolves_move.lua
M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
M data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua
M data/ai/micro_ais/cas/ca_wolves_wander.lua
M data/ai/micro_ais/cas/ca_zone_guardian.lua
Log Message:
-----------
Micro AIs: avoid using formula= in SUFs
It’s slow for finding units with moves or attacks left. The
alternative method of getting all units and then looping over the table
with a condition is much faster.
More information about the Commits
mailing list