コード例 #1
0
        public void AddHost(Host host)
        {
            int distanceLimitForAddingHost = 600;
            int allownedHostsCount         = (Route.Distance / distanceLimitForAddingHost) + 1;

            if (HostCollection.Length < allownedHostsCount)
            {
                HostCollection.Add(host);
            }
        }
コード例 #2
0
 public void RemoveHost(Host host)
 {
     HostCollection.Remove(host);
 }