예제 #1
0
        private void AddSite(Vector2f p, int index)
        {
            float weigth = (float)weigthDistributor.NextDouble() * 100;
            Site  site   = manager.ObtainSite(p, index, weigth);

            sites.Add(site);
        }
예제 #2
0
        private void AddSite(Vector2 p, int index)
        {
            float weigth = (float)weigthDistributor.NextDouble() * 100;
            Site  site   = Site.Create(p, index, weigth);

            sites.Add(site);
            SitesIndexedByLocation[p] = site;
        }
예제 #3
0
        private void AddSite(Vector2f p, int index)
        {
            float weigth = (float)this.weightDistributor * 100;
            Site  site   = Site.Create(p, index, weigth);

            sites.Add(site);
            sitesIndexedByLocation[p] = site;
        }