/// <inheritdoc/> public void Attack(INetworkController target) { if (this.IsEnable) { if (this.UsedCable < this.CableCapacity && this.Utps.Where(x => x.Target == target).FirstOrDefault() == null) { this.Utps.Add(new Utp(this, target)); if (target.Owner == this.Owner) { IUtp utp = (target as IActiveNetworkController).Utps.Where(x => x.Target == this).FirstOrDefault(); if (utp != null) { utp.Aback(); } } } } }
/// <inheritdoc/> public void AddCutedUtp(IUtp cutedUtp) { this.Utps.Add(cutedUtp); }
/// <inheritdoc/> public void DisconectUtp(IUtp utp) { utp.Aback(); }
/// <inheritdoc/> public void CutUtp(IUtp utp, ICable cable) { utp.Cut(cable); }