0ad/binaries/data/mods/public/simulation/components
Freagarach 0c4f59d0a7 Split tasks from ProductionQueue.
The task of the production queue should first and foremost be that; a
queue for production items.
Hence, the specifics of training/researching are delegated to specific
components.

As a side effect, this improves the test coverage and fixes:
- Resource not refunding when hitting the entity limit. Introduced in
b8758c8941.
- Autoqueue changing when unable to spawn. Introduced in 956b3f96db.

Modders can change their templates using
https://code.wildfiregames.com/P256.

Differential revision: https://code.wildfiregames.com/D4333
Fixes: #6363
Comments by: @Silier
Refs. #6364

This was SVN commit r26000.
2021-11-16 07:08:39 +00:00
..
interfaces Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
tests Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
AIInterface.js Move PopulationBonus from cmpCost to new cmpPopulation. 2020-12-14 18:17:59 +00:00
AIProxy.js Let PetraAI use the GarrisonHolder from cmpGarrisonable instead of UnitAI. 2021-03-12 19:47:31 +00:00
AlertRaiser.js Fix raising alert. 2021-04-02 17:01:59 +00:00
Attack.js Fix attacking miraged entities. 2021-09-11 04:47:25 +00:00
AttackDetection.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
Auras.js Technically seperate Turrets from GarrisonHolder. 2021-03-26 10:18:30 +00:00
AutoBuildable.js Remove duplication from cmpAutoBuildable init. 2021-01-10 07:25:52 +00:00
Barter.js Make PlayerHasMarket event-based. 2020-10-29 09:22:48 +00:00
BattleDetection.js
Builder.js Allow toggling repairability. 2021-05-06 14:25:33 +00:00
BuildingAI.js Use a map for the weighted list. 2021-04-16 07:02:58 +00:00
BuildRestrictions.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
Capturable.js Move Mirage information to respective components. 2021-03-20 16:01:11 +00:00
CeasefireManager.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
Cost.js Don't pass owner to initialise a foundation. 2021-04-04 06:38:16 +00:00
DeathDamage.js Rename Attacking.js-helper to Attack.js and its global to AttackHelper. 2021-04-16 06:55:23 +00:00
DelayedDamage.js Rename Attacking.js-helper to Attack.js and its global to AttackHelper. 2021-04-16 06:55:23 +00:00
EndGameManager.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
EntityLimits.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
Fogging.js Fix CanAttack for mirages following 88549e77e1 2021-05-22 10:56:40 +00:00
Formation.js Add accelerations in unit movement. 2021-10-09 21:31:11 +00:00
FormationAttack.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
Foundation.js Fix foundation and corpses phenotypes being different than the source entity. 2021-07-20 22:04:19 +00:00
Garrisonable.js Fix garrison rally point when unloading. 2021-04-04 05:57:42 +00:00
GarrisonHolder.js Use interval instead of timeout for healing in GarrisonHolder. 2021-04-04 06:32:53 +00:00
Gate.js Fix foundation committing following 592453c62f (pushing) 2021-04-06 12:28:53 +00:00
Guard.js
GuiInterface.js Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
Heal.js Attack using cmpAttack instead of UnitAI. 2021-04-12 06:51:39 +00:00
Health.js Fix foundation and corpses phenotypes being different than the source entity. 2021-07-20 22:04:19 +00:00
Identity.js Fix foundation and corpses phenotypes being different than the source entity. 2021-07-20 22:04:19 +00:00
Loot.js
Looter.js Add safeguards for all queryOwnerInterface calls 2020-09-19 17:55:34 +00:00
Market.js Move trader gain to cmpMarket. 2021-04-07 06:58:36 +00:00
Mirage.js Store components to be miraged in cmpFogging. 2021-03-20 16:14:35 +00:00
ModifiersManager.js Fix VisualActor tech changes for mirages 2020-11-28 08:57:15 +00:00
MotionBall.js
Pack.js Move Can*-function implementations from UnitAI to their respective components. 2021-03-27 11:22:34 +00:00
Player.js Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
PlayerManager.js Do not process commands sent by observers. 2020-09-22 18:28:21 +00:00
Population.js Move PopulationBonus from cmpCost to new cmpPopulation. 2020-12-14 18:17:59 +00:00
ProductionQueue.js Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
Promotion.js Fix duplicating promoting entities in XP trickling structures. 2021-05-15 05:40:13 +00:00
RallyPoint.js Use transform to finish construction. 2021-04-06 12:54:33 +00:00
RangeOverlayManager.js Fix cosmetic ESLint warnings in JS components (and their tests). 2021-03-20 09:02:22 +00:00
Repairable.js Mirage unrepairable in cmpRepairable. 2021-06-15 08:46:14 +00:00
Researcher.js Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
Resistance.js Fix attacking miraged entities. 2021-09-11 04:47:25 +00:00
ResourceDropsite.js Commit resources at dropsite and add tests. 2021-01-11 11:59:07 +00:00
ResourceGatherer.js Rename misnamed lastGatheredType in ResourceGatherer. 2021-09-24 06:33:53 +00:00
ResourceSupply.js Fix renaming fields losing the ability to be gathered. 2021-09-10 06:22:43 +00:00
ResourceTrickle.js Allow the interval to be changed in the templates for the Resource Trickle component. 2020-07-24 18:39:51 +00:00
Settlement.js
SkirmishReplacer.js Use seperate message to handle skirmish replacements. 2021-03-08 07:01:17 +00:00
Sound.js Replace {gender} by {phenotype} and support this tag in VisualActor. 2019-08-01 19:14:40 +00:00
StatisticsTracker.js Add resource and population counts to the summary screen. 2021-01-20 09:24:26 +00:00
StatusBars.js cp => CapturePoints 2020-12-23 17:26:36 +00:00
StatusEffectsReceiver.js Rename Attacking.js-helper to Attack.js and its global to AttackHelper. 2021-04-16 06:55:23 +00:00
TechnologyManager.js Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
TerritoryDecay.js Allow decaying only in enemy territory. 2021-05-18 12:43:01 +00:00
TerritoryDecayManager.js
Timer.js Allow timers to update their interval. 2020-05-19 15:42:57 +00:00
Trader.js Don't store origin market in this.goods in cmpTrader. 2021-04-07 07:04:57 +00:00
Trainer.js Split tasks from ProductionQueue. 2021-11-16 07:08:39 +00:00
TrainingRestrictions.js Allow to limit unit count per match. 2020-12-29 11:00:54 +00:00
Treasure.js Fix treasure in statistics 2021-07-13 16:46:32 +00:00
TreasureCollector.js TreasureCollecter -> TreasureCollector. 2021-05-18 16:51:44 +00:00
Trigger.js Fix a1010b83d3 and 8f8996e338 2021-11-06 11:07:28 +00:00
TriggerPoint.js Allow registering custom data for triggers 2021-05-09 16:55:36 +00:00
Turretable.js Allow to specify subunits on creation. 2021-04-05 05:22:25 +00:00
TurretHolder.js Allow to specify subunits on creation. 2021-04-05 05:22:25 +00:00
UnitAI.js Don't stop gathering after starting by autocontinue when in a formation. 2021-10-03 05:59:54 +00:00
UnitMotionFlying.js Add accelerations in unit movement. 2021-10-09 21:31:11 +00:00
Upgrade.js Do not allow upgrading when entity is producing and vice versa. 2020-10-04 10:20:20 +00:00
Upkeep.js Add Upkeep component. 2021-04-04 06:52:20 +00:00
ValueModificationManager.js
Visibility.js
VisionSharing.js
WallPiece.js Correct WallPiece schema help comments 2020-05-21 19:11:00 +00:00
WallSet.js Add help comments to WallPiece component schema 2020-05-21 04:34:13 +00:00
Wonder.js