Exemple #1
0
        public void setSoilType(SoilType soiltype)
        {
            this.soiltype = soiltype;
            resetPlotWeeks();

            if (hasCrop != 0)
            {
                CalBeginToEnd();
            }
        }
Exemple #2
0
 public Plot(string PlotId, SoilType soiltype, int intialWeeks, Simulation simulation)
 {
     this.PlotId         = PlotId;
     this.soiltype       = soiltype;
     this.hasCrop        = 0;
     this.Ares           = 100;
     this.cropsHarvested = 0;
     this.simulation     = simulation;
     plotWeeks           = new List <PlotWeek>();
     for (int i = 0; i < intialWeeks; i++)
     {
         plotWeeks.Add(new PlotWeek());
     }
     setSoilType(this.soiltype);
     //Set Weather for plot weeks
     for (int i = 0; i < plotWeeks.Count; i++)
     {
         setWeatherForWeek(i);
     }
 }