public void AddHost(Host host) { int distanceLimitForAddingHost = 600; int allownedHostsCount = (Route.Distance / distanceLimitForAddingHost) + 1; if (HostCollection.Length < allownedHostsCount) { HostCollection.Add(host); } }
public void RemoveHost(Host host) { HostCollection.Remove(host); }