Example #1
0
 private void OnDrawingAreaMouseClick(object sender, MouseEventArgs e)
 {
     if(e.Button == MouseButtons.Left)
     {
         FoodSource source = new FoodSource(e.X, e.Y);
         _worldManager.AddFoodSource(source);
     }
     else if(e.Button == MouseButtons.Right)
     {
         Nest nest = new Nest(e.X, e.Y);
         _worldManager.AddNest(nest);
     }
 }
Example #2
0
 private void OnDrawingAreaMouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         FoodSource source = new FoodSource(e.X, e.Y);
         _worldManager.AddFoodSource(source);
     }
     else if (e.Button == MouseButtons.Right)
     {
         Nest nest = new Nest(e.X, e.Y);
         _worldManager.AddNest(nest);
     }
 }
Example #3
0
 public void AddNest(Nest nest)
 {
     _nests.Add(nest);
 }
Example #4
0
 public void AddNest(Nest nest)
 {
     _nests.Add(nest);
 }