Ejemplo n.º 1
0
 public void CutAndDropAllTreesInStand(Model model)
 {
     foreach (MutableTuple <Trees, List <int> > treesOfSpecies in this.mTreesInMostRecentlyLoadedStand)
     {
         Trees trees = treesOfSpecies.Item1;
         foreach (int treeIndex in treesOfSpecies.Item2)
         {
             trees.SetDeathReasonCutAndDrop(treeIndex); // set flag that tree is cut down
             trees.Die(model, treeIndex);
         }
     }
     this.mTreesInMostRecentlyLoadedStand.Clear();
 }