예제 #1
0
 public void Killed(Actor self, AttackInfo e)
 {
     if (reservedForAircraft != null)
     {
         reservedForAircraft.UnReserve();
     }
 }
예제 #2
0
 public void Disposing(Actor self)
 {
     if (reservedForAircraft != null)
     {
         reservedForAircraft.UnReserve();
     }
 }
예제 #3
0
 public void Tick(Actor self)
 {
     if (reservedFor == null)
     {
         return;                         /* nothing to do */
     }
     if (!Target.FromActor(reservedFor).IsValidFor(self))
     {
         /* Not likely to arrive now. */
         reservedForAircraft.UnReserve();
         reservedFor         = null;
         reservedForAircraft = null;
     }
 }
        void ITick.Tick(Actor self)
        {
            // Nothing to do.
            if (reservedFor == null)
            {
                return;
            }

            if (!Target.FromActor(reservedFor).IsValidFor(self))
            {
                // Not likely to arrive now.
                reservedForAircraft.UnReserve();
                reservedFor         = null;
                reservedForAircraft = null;
            }
        }