Ejemplo n.º 1
0
 public Bee(int id, Point place, World world, Nest nest)
 {
     this.ID         = id;
     this.place      = place;
     Age             = 0;
     CollectedNectar = 0;
     InNest          = true;
     TargetFlower    = null;
     World           = world;
     Nest            = nest;
 }
Ejemplo n.º 2
0
        public World()
        {
            Bees    = new List <Bee>();
            Flowers = new List <Flower>();
            Nest    = new Nest(this);
            Random r = new Random();

            for (int i = 0; i < 10; i++)
            {
                NewFlower(r);
            }
        }