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; }
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; }
private void genereateNest() { nest = new Nest((AntsWorld.Width / 2), (AntsWorld.Height / 2)); }