Exemplo n.º 1
0
 public World(int inHeight, int inWidth, List<Ant> inAntList, List<Food> inFoodList, Nest inNest)
 {
     this.height = inHeight;
     this.width = inWidth;
     this.antList = inAntList;
     this.foodList = inFoodList;
     this.foodListTemp = inFoodList;
     this.phenomenonList = new List<Phenomenon>();
     this.nest = inNest;
 }
Exemplo n.º 2
0
 public Ant(int inX, int inY, Nest inNest)
 {
     this.x = inX;
     this.y = inY;
     this.nest = inNest;
     this.location = new Point(x, y);
     this.direction = randomGenerateDirection();
     this.phenomenonAmount = 150;
     this.phenomenonList = new List<Phenomenon>();
     this.job = State.RANDOM_MOVEMENT;
 }
Exemplo n.º 3
0
 private void genereateNest()
 {
     nest = new Nest((AntsWorld.Width / 2), (AntsWorld.Height / 2));
 }