Esempio n. 1
0
 public override void ObjectRemoved(IGameObject obj)
 {
     if (this.m_LocustNest != null && this.m_LocustNest.GetShip() == obj)
     {
         this.m_LocustNest = (LocustNestControl)null;
     }
     if (this.m_Target != obj)
     {
         return;
     }
     this.m_Target = (IGameObject)null;
 }
Esempio n. 2
0
 public override void FindParent(IEnumerable <CombatAIController> controllers)
 {
     foreach (CombatAIController controller in controllers)
     {
         if (controller is LocustNestControl)
         {
             LocustNestControl locustNestControl = controller as LocustNestControl;
             if (locustNestControl.IsThisMyNest(this.m_LocustFighter))
             {
                 locustNestControl.AddFighter((CombatAIController)this);
                 this.m_LocustNest = locustNestControl;
                 break;
             }
         }
     }
 }
Esempio n. 3
0
 public override void Initialize()
 {
     this.m_Target     = (IGameObject)null;
     this.m_LocustNest = (LocustNestControl)null;
     this.m_State      = LocustFighterStates.IDLE;
 }