Create singletons for AttackOrFleeFuzzy rulesets.

This avoids the cost of recreating the engines and rules for every AI and AI squad.
This commit is contained in:
RoosterDragon
2016-02-10 20:17:27 +00:00
parent 6093398de3
commit 3b480ea4bb
6 changed files with 133 additions and 148 deletions

View File

@@ -30,8 +30,6 @@ namespace OpenRA.Mods.Common.AI
internal Target Target;
internal StateMachine FuzzyStateMachine;
internal AttackOrFleeFuzzy AttackOrFleeFuzzy = new AttackOrFleeFuzzy();
public Squad(HackyAI bot, SquadType type) : this(bot, type, null) { }
public Squad(HackyAI bot, SquadType type, Actor target)