示例#1
0
 private void buttonInitialize_Click(object sender, EventArgs e)
 {
     GetValuesFromInterface();
     w = new World(width, height, numAnts, numFoodPiles, foodPerPile);
     initialized = true;
     Display();
 }
示例#2
0
 public Ant(World world, Rectangle home)
 {
     this.world = world;
     this.home = home;
     this.dir = (Directions)rand.Next(8);
     loc = home;
     hasFood = false;
 }