0ad/binaries/data/mods/public/simulation/components/tests
wraitii c87229aa48 Optimise FindWalkAndFightTargets.
FindWalkAndFightTargets is used during attack-walk (and a few other
situations) to find new entities to attack. This function can be a bit
slow, taking large chunks of time during battles.

This optimises it by assuming that one of the surrounding unit will
match preferred criteria (which, for most soldiers, are 'Human'), thus
returning the first attackable entity. In the worst case, it should
still be slightly faster than the current code.

Differential Revision: https://code.wildfiregames.com/D3446
This was SVN commit r25102.
2021-03-22 13:27:33 +00:00
..
setup.js Enable garrisoning on gates / fix movement of units with visible garrison points (2nd commit) 2020-06-02 11:40:29 +00:00
setup_test.js Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
test_Attack.js Optimise FindWalkAndFightTargets. 2021-03-22 13:27:33 +00:00
test_Auras.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_AutoBuildable.js Allow buildings to autobuild themselves. 2020-02-25 21:29:07 +00:00
test_Barter.js Make PlayerHasMarket event-based. 2020-10-29 09:22:48 +00:00
test_Builder.js Move civ-specific templates to subfolders. 2020-11-19 10:20:25 +00:00
test_Capturable.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_Damage.js Combine attacker data in "data"-object in attack-related code. 2021-03-05 06:32:44 +00:00
test_DeathDamage.js Get attack effects from JSON. 2021-01-02 07:09:08 +00:00
test_EndGameManager.js Implement combine victory conditions 2018-03-09 21:51:18 +00:00
test_EntityLimits.js Allow to limit unit count per match. 2020-12-29 11:00:54 +00:00
test_Foundation.js Move PopulationBonus from cmpCost to new cmpPopulation. 2020-12-14 18:17:59 +00:00
test_Garrisonable.js Handle aura and production pause on GarrisonedStateChanged message. 2021-03-16 05:49:36 +00:00
test_GarrisonHolder.js Fix ownership changing assertion with a garrison holder with multiple garrisoned entities. 2021-03-11 06:14:13 +00:00
test_Garrisoning.js Handle aura and production pause on GarrisonedStateChanged message. 2021-03-16 05:49:36 +00:00
test_Gate.js Enable garrisoning on gates / fix movement of units with visible garrison points (2nd commit) 2020-06-02 11:40:29 +00:00
test_GuiInterface.js Split treasures from ResourceSupply. 2021-03-03 07:47:38 +00:00
test_Heal.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_Health.js Move TargetKilled function from Attacking.js-helper to KilledBy in cmpHealth. 2020-08-16 06:10:28 +00:00
test_Identity.js Move civ-specific templates to subfolders. 2020-11-19 10:20:25 +00:00
test_Math.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_ModifiersManager.js Fix lineendings. 2019-09-26 09:46:01 +00:00
test_Pack.js Fix entities not retaining repair order after target transforms 2020-01-27 17:14:30 +00:00
test_Player.js Make PlayerHasMarket event-based. 2020-10-29 09:22:48 +00:00
test_Population.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_ProductionQueue.js Clean up AddBatch (AddItem) in ProductionQueue. 2021-03-16 05:55:04 +00:00
test_Promotion.js Add XPtrickle test after d392472d44, cleanup promotion test. 2020-05-14 15:07:33 +00:00
test_RallyPoint.js Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
test_Resistance.js Combine attacker data in "data"-object in attack-related code. 2021-03-05 06:32:44 +00:00
test_ResourceDropsite.js Commit resources at dropsite and add tests. 2021-01-11 11:59:07 +00:00
test_ResourceGatherer.js Speed up carry capacity tech research / resource value modification. 2021-01-17 18:29:11 +00:00
test_Resources.js Add resources "component test". 2021-03-03 08:57:06 +00:00
test_ResourceSupply.js Add resources "component test". 2021-03-03 08:57:06 +00:00
test_ResourceTrickle.js Allow the interval to be changed in the templates for the Resource Trickle component. 2020-07-24 18:39:51 +00:00
test_StatisticsTracker.js Remove hardcoding and quadruplication of the StatisticsTracker unit and building classes following 1d3ac14d35, refs #686. 2019-10-21 08:48:17 +00:00
test_StatusEffectsReceiver.js Make attacker data explicitly optional in status effects. 2021-03-05 09:40:23 +00:00
test_TechnologyManager.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_Timer.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_Treasure.js Split treasures from ResourceSupply. 2021-03-03 07:47:38 +00:00
test_TreasureCollecter.js Split treasures from ResourceSupply. 2021-03-03 07:47:38 +00:00
test_Treasures.js Fix tests broken between latest rebase and commit of ea96e81098. 2021-03-03 08:18:42 +00:00
test_TurretHolder.js Move the ability to hold a turret to a separate file. 2020-07-20 10:51:14 +00:00
test_UnitAI.js Optimise FindWalkAndFightTargets. 2021-03-22 13:27:33 +00:00
test_UnitMotionFlying.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
test_UpgradeModification.js Move civ-specific templates to subfolders. 2020-11-19 10:20:25 +00:00
test_ValueModificationHelper.js Add a system component to handle stat modifiers, make technologies and auras use this common interface. 2019-08-24 07:37:07 +00:00
test_Vector.js Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
test_VisionSharing.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00