public Squad(HackyAI bot, SquadT type, Actor target) { Bot = bot; World = bot.World; Random = bot.Random; Type = type; Target = Target.FromActor(target); FuzzyStateMachine = new StateMachine(); switch (type) { case SquadT.Assault: case SquadT.Rush: FuzzyStateMachine.ChangeState(this, new GroundUnitsIdleState(), true); break; case SquadT.Air: FuzzyStateMachine.ChangeState(this, new AirIdleState(), true); break; case SquadT.Protection: FuzzyStateMachine.ChangeState(this, new UnitsForProtectionIdleState(), true); break; } }
public BaseBuilder(HackyAI ai, string category, Player p, PowerManager pm, PlayerResources pr) { this.ai = ai; world = p.World; this.category = category; this.player = p; this.playerPower = pm; this.playerResources = pr; this.category = category; failRetryTicks = ai.Info.StructureProductionResumeDelay; }
public Squad(HackyAI bot, SquadT type) : this(bot, type, null) { }