Esempio n. 1
0
 public World(BeeMessage messageSender)
 {
     Bees = new List<Bee>();
     Flowers = new List<Flower>();
     Hive = new Hive(this, messageSender);
     Random random = new Random();
     for (int i = 0; i < 10; i++)
         AddFlower(random);
 }
Esempio n. 2
0
 public Bee(int ID, Point initialLocation, World world, Hive hive)
 {
     this.ID = ID;
     Age = 0;
     location = initialLocation;
     InsideHive = true;
     CurrentState = BeeState.Idle;
     destinationFlower = null;
     NectarCollected = 0;
     this.world = world;
     this.hive = hive;
 }