Пример #1
0
 public ObjectiveBase(Vector2 position, ObjectiveBaseTurret turret1, ObjectiveBaseTurret turret2)
     : base(position)
 {
     Object   = ObjectManager.Get <Obj_HQ>().First(tower => Math.Abs(tower.Position.X - position.X) < ObjectiveOuterTurret.EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < ObjectiveOuterTurret.EstimatedPositionRange);
     _turret1 = turret1;
     _turret2 = turret2;
     RequiredObjectives.Add(turret1);
     RequiredObjectives.Add(turret2);
 }
 public ObjectiveBaseTurret(Vector2 position, ObjectiveInhibitor inhib1, ObjectiveInhibitor inhib2, ObjectiveInhibitor inhib3)
     : base(position)
 {
     Object     = ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(tower => Math.Abs(tower.Position.X - position.X) < ObjectiveOuterTurret.EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < ObjectiveOuterTurret.EstimatedPositionRange);
     _inhib1    = inhib1;
     _inhib2    = inhib2;
     _inhib3    = inhib3;
     RequireAll = false;
     RequiredObjectives.Add(inhib1);
     RequiredObjectives.Add(inhib2);
     RequiredObjectives.Add(inhib3);
 }
Пример #3
0
 /// <summary>
 /// Give me the estimated position via SummonersRift.Base.TowerXYZ
 /// </summary>
 public ObjectiveInnerTurret(Vector2 position, ObjectiveOuterTurret requiredTurret) : base(position)
 {
     Object          = ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(tower => Math.Abs(tower.Position.X - position.X) < ObjectiveOuterTurret.EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < ObjectiveOuterTurret.EstimatedPositionRange);
     _requiredTurret = requiredTurret;
     RequiredObjectives.Add(requiredTurret);
 }
Пример #4
0
 public ObjectiveInhibitor(Vector2 position, ObjectiveInhibitorTurret inhibTower) : base(position)
 {
     _tower     = inhibTower;
     _inhibitor = ObjectManager.Get <Obj_BarracksDampener>().First(tower => Math.Abs(tower.Position.X - position.X) < EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < EstimatedPositionRange);
     RequiredObjectives.Add(inhibTower);
 }