ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
skylarks_all.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************************************
3 Copyright (c) 2011, Christopher John Topping, Aarhus University
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided
7 that the following conditions are met:
8 
9 Redistributions of source code must retain the above copyright notice, this list of conditions and the
10 following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
12 the following disclaimer in the documentation and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
19 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 ********************************************************************************************************
23 */
24 
25 //---------------------------------------------------------------------------
26 #ifndef Skylarks_All_H
27 #define Skylarks_All_H
28 //---------------------------------------------------------------------------
29 
30 #define UNREFERENCED_PARAMETER(P) (P)
31 #define SKOPTIMALHABITATSCORE 50
32 
33 using namespace std;
34 
35 using SkylarkObject = enum {
36  sob_Clutch,
37  sob_Nestling,
38  sob_PreFledgeling,
39  sob_Male,
40  sob_Female
41 };
42 
43 using TTypesOfSkState = enum {
44  toss_Initiation = 0,
45  //Clutch
46  toss_Developing,
47  toss_Hatching,
48  toss_CDying,
49  //Nestling
50  toss_NDeveloping,
51  toss_NMaturing,
52  toss_NDying,
53  //PreFledgeling
54  toss_PDeveloping,
55  toss_PMaturing,
56  toss_PDying,
57  //MaleSK
58  toss_MFlocking,
59  toss_MFloating,
60  toss_MArriving,
61  toss_MImmigrating,
62  toss_MEmigrating,
63  toss_MTempLeavingArea,
64  toss_MFindingTerritory,
65  toss_AttractingAMate,
66  toss_FollowingMate,
67  toss_ScaringOffChicks,
68  toss_MCaringForYoung,
69  toss_MDying,
70  toss_MRehousing,
71  //FemaleSK
72  toss_FFlocking,
73  toss_FFloating,
74  toss_FArriving,
75  toss_FImmigrating,
76  toss_FEmigrating,
77  toss_FTempLeavingArea,
78  toss_FFindingTerritory,
79  toss_BuildingUpResources,
80  toss_MakingNest,
81  toss_PreparingForBreeding,
82  toss_Laying,
83  toss_StartingNewBrood,
84  toss_EggHatching,
85  toss_Incubating,
86  toss_StoppingBreeding,
87  toss_FCaringForYoung,
88  toss_FDying,
89  toss_GivingUpTerritory,
90  // Destroy object state
91  toss_Destroy,
92 };
93 
94 // Forward declarations
95 class Skylark_Base;
96 class Skylark_Clutch;
97 class Skylark_Nestling;
99 class Skylark_Female;
100 class Skylark_Male;
101 class Landscape;
102 class SkTerritories;
103 class TForm1;
104 class Population_Manager;
105 class Probe_Data;
106 
107 //------------------------------------------------------------------------------
108 // Class Declarations
109 //------------------------------------------------------------------------------
110 
111 template <class T>
112 class TSkylarkList : public vector<T> {
113 public:
114  TSkylarkList() : vector<T>() {
115  }
116 
117  //------------------------------------------------------------------------------
118  double Probe(const Probe_Data* p_TheProbe) {
119  // Counts through the list and goes through each area to see if the animal
120  // is standing there and if the farm, veg or element conditions are met
121  AnimalPosition Sp;
122  double NumberSk = 0;
123  // Four possibilites
124  // either NoVegTypes or NoElementTypes or NoFarmTypes is >0 or all==0
125  if (p_TheProbe->m_NoFarms != 0)
126  {
127  for (unsigned j = 0; j < this->GetItemsInContainer(); j++)
128  {
129  Sp = this->Get(j)->SupplyPosition();
130  const unsigned Farm = this->Get(j)->SupplyFarmOwnerRef();
131  for (unsigned i = 0; i < p_TheProbe->m_NoAreas; i++)
132  {
133  if (Sp.m_x >= p_TheProbe->m_Rect[i].m_x1 && Sp.m_y >= p_TheProbe->m_Rect[i].m_y1 && Sp.m_x < p_TheProbe->m_Rect[i].m_x2 && Sp
134  .m_y < p_TheProbe->m_Rect[i].m_y2)
135  for (unsigned k = 0; k < p_TheProbe->m_NoFarms; k++)
136  {
137  if (p_TheProbe->m_RefFarms[k] == Farm) NumberSk++; // it is in the square so increment number
138  }
139  }
140  }
141  }
142  if (p_TheProbe->m_NoEleTypes != 0)
143  {
144  for (unsigned j = 0; j < this->GetItemsInContainer(); j++)
145  {
146  Sp = this->Get(j)->SupplyPosition();
147  for (unsigned i = 0; i < p_TheProbe->m_NoAreas; i++)
148  {
149  if (Sp.m_x >= p_TheProbe->m_Rect[i].m_x1 && Sp.m_y >= p_TheProbe->m_Rect[i].m_y1 && Sp.m_x < p_TheProbe->m_Rect[i].m_x2 && Sp
150  .m_y < p_TheProbe->m_Rect[i].m_y2)
151  for (unsigned k = 0; k < p_TheProbe->m_NoEleTypes; k++)
152  {
153  if (p_TheProbe->m_RefEle[k] == Sp.m_EleType) NumberSk++; // it is in the square so increment number
154  }
155  }
156  }
157  }
158  else
159  {
160  if (p_TheProbe->m_NoVegTypes != 0)
161  {
162  for (unsigned j = 0; j < this->GetItemsInContainer(); j++)
163  {
164  Sp = this->Get(j)->SupplyPosition();
165  for (unsigned i = 0; i < p_TheProbe->m_NoAreas; i++)
166  {
167  if (Sp.m_x >= p_TheProbe->m_Rect[i].m_x1 && Sp.m_y >= p_TheProbe->m_Rect[i].m_y1 && Sp.m_x < p_TheProbe->m_Rect[i].m_x2
168  && Sp.m_y < p_TheProbe->m_Rect[i].m_y2)
169  {
170  for (unsigned k = 0; k < p_TheProbe->m_NoVegTypes; k++)
171  {
172  if (p_TheProbe->m_RefVeg[k] == Sp.m_VegType) NumberSk++; // it is in the square so increment number
173  }
174  }
175  }
176  }
177  }
178  else // both must be zero
179  {
180  for (unsigned j = 0; j < this->GetItemsInContainer(); j++)
181  {
182  Sp = this->Get(j)->SupplyPosition();
183  for (unsigned i = 0; i < p_TheProbe->m_NoAreas; i++)
184  {
185  if (Sp.m_x >= p_TheProbe->m_Rect[i].m_x1 && Sp.m_y >= p_TheProbe->m_Rect[i].m_y1 && Sp.m_x < p_TheProbe->m_Rect[i].m_x2
186  && Sp.m_y < p_TheProbe->m_Rect[i].m_y2) NumberSk++; // it is in the square so increment number
187  }
188  }
189  }
190  }
191  return NumberSk;
192  }
193  //------------------------------------------------------------------------------
194 };
195 
196 //----------------------------------------------------------------------------
197 
199 public:
200  int x;
201  int y;
202  bool found;
203 };
204 
205 //----------------------------------------------------------------------------
206 
208 public:
209  int x;
210  int y;
211  int bx;
212  int by;
213  int mh;
216 
217  virtual ~Skylark_struct() {
218  }
219 };
220 
221 //------------------------------------------------------------------------------
222 
224 public:
225  int No;
227 };
228 
229 //------------------------------------------------------------------------------
230 
232 public:
234 };
235 
236 //------------------------------------------------------------------------------
237 
239 public:
240  double size;
242  bool sex;
243  int age;
244 };
245 
246 //------------------------------------------------------------------------------
247 
249 public:
250  double size;
251  bool sex;
252  int age;
253 };
254 
255 //------------------------------------------------------------------------------
256 
258 public:
259  vector<int> m_polys;
260  vector<int> m_sizes;
261  vector<int> m_hr_polys;
262  vector<int> m_hr_sizes;
263 
271  double GetVirtualDiameter() const { return m_VirtualDiameter; }
272  void SetVirtualDiameter(const double dia) { m_VirtualDiameter = dia; }
273 
274  int Size; // it is square so we need only one dimension
277  int GetQuality(void) const { return m_Quality; }
278  void SetQuality(const int a_qual) { m_Quality = a_qual; }
281  skTTerritory(int x, int y, int TheSize, int TheQuality, int a_x_div10, int a_y_div10, int a_range_div10);
282  // assume we store the quality here - question of efficiency
283  void TestNestPossibility();
284  void SetNestPossibility(const bool valid, const int nx, const int ny) {
285  m_nest_valid = valid;
286  m_nest_pos_validx = nx;
287  m_nest_pos_validy = ny;
288  }
289 
290 protected:
294 };
295 
296 //------------------------------------------------------------------------------
298 public:
299  int x;
300  int y;
301  int size;
302  int ref = -1;
303  double nqual = 0.0;
304  bool validnest;
305 };
306 
307 //------------------------------------------------------------------------------
308 
309 class SkQualGrid {
310 public:
311  vector<int> m_sizes;
312  vector<int> m_polys;
313  double m_qual;
314 
315  int Insert(const int a_poly) {
316  const int l_size = static_cast<int>(m_sizes.size());
317  m_sizes.resize(l_size + 1);
318  m_polys.resize(l_size + 1);
319  m_polys[l_size] = a_poly;
320  m_sizes[l_size] = 1;
321  return l_size;
322  }
323 };
324 
325 //------------------------------------------------------------------------------
327 private:
328  skTTerritory* Territories[400000]; // up to 400000 possible territories
330  int SimW, SimH;
331  bool* Grid;
332 
333  // This one is inlined for speed, belongs to EvaluateHabitat1().
334  // Many of the methods below are now inlined. FN, 2003-11-04.
335  int EvaluateHabitatSquare(int xmin, int xmax, int ymin, int ymax, int NoPolygons);
336 
337  int m_sim_w_div_10, m_sim_h_div_10;
340 
341  // The size of the next arrays.
345  // m_qual_cache is quality per unit area for each polygon.
346  // Updated daily, but only if needed.
347  double* m_qual_cache;
349 
350  int m_for_iter_x[1000];
351  int m_for_iter_y[1000];
352  static int PreMakeForIterator(int a_min_incl, int a_max_excl, int* a_iter, int a_norm_max_excl);
353  void PreFillTerrPolyLists(skTTerritory* a_terr);
354  void PreFillQualGrid(void);
355  void PreEvaluateQualGrid(SkQualGrid* a_grid, int a_x, int a_y, int a_width, int a_height);
356  void PreFillQualCache(void);
357 
358  // PrePoly2Qual() is where the actual evaluation of each polygon
359  // takes place.
360  //double PrePoly2Qual( int a_poly, int * a_good_polys );
361 
362  // Coordinates are in grid squares, ie. map coordinates divided by 10.
363  int PreEvaluateHabitat(int a_x, int a_y, int a_range_x, int a_range_y) const;
364  int PreEvaluateHabitatStripX(int a_x, int a_y, int a_range_x) const;
365  int PreEvaluateHabitatStripY(int a_x, int a_y, int a_range_x) const;
366 
367  void DumpMapGraphics(const char* a_filename, Landscape* a_map) const;
368 
369 public:
370  // New daily update method. Called by DoFirst() in the
371  // population manager.
372  void Tick(void) { m_qual_cache_filled = false; }
373  void EvaluateAllTerritories(void);
374  void PreCachePoly(int a_poly);
375  double PrePoly2Qual(int a_poly);
376  double PrePolyNQual(int a_poly, int* a_good_polys);
377  int PolyRefData[2500];
378  int PolySizeData[2500];
379  double PolyHeightData[2500];
380  TTypesOfLandscapeElement PolyTypeData[2500];
382  void PreProcessLandscape2(Landscape* L);
383  void ClaimGrid(int x, int y, int range) const;
384  void UpdateQuality();
385  bool IsGridPositionValid(const int& a_x, const int& a_y, int a_range) const;
386  bool IsExtGridPositionValid(const int& x, const int& y, int range) const;
387  int IsValid(int nx, int ny) const;
388  void GetTerritoriesByDistance(int nx, int ny, vector<APoint>* alist) const;
389  int Supply_quality(int ref) const;
390  int Supply_x(int ref) const;
391  int Supply_y(int ref) const;
392  int Supply_size(int ref) const;
393  skTTerritory* Supply_terr(int ref) const;
394  void RemoveFemale(int ref) const;
395  void RemoveMale(int ref) const;
396  void Split(int ref);
397  Skylark_Male* Supply_Owner(int ref) const;
398  Skylark_Female* Supply_F_Owner(int ref) const;
399  void Occupy(int ref, Skylark_Male* Male) const;
400  void FemaleOccupy(int ref, Skylark_Female* Female) const;
401  double EvaluateHabitatN(skTTerritory* a_terr);
402  int SupplyNoTerritories() const;
403  int SupplyNoMaleOccupied() const;
404  int SupplyNoFemaleOccupied() const;
405  bool SupplyIsNestValid(const int ref) const { return Territories[ref]->m_nest_valid; }
406  APoint SupplyNestPosition(const int ref) const {
407  const APoint p(Territories[ref]->m_nest_pos_validx, Territories[ref]->m_nest_pos_validy);
408  return p;
409  }
411  ~SkTerritories();
412 };
413 
414 //------------------------------------------------------------------------------
420 
421 //------------------------------------------------------------------------------
422 
424 protected:
425 #ifdef __CJTDebug_10
426  long refnum;
427 #endif
428  void DoFirst() override;
429  void ProbeReportPOM(int a_time);
430  float ProbePOM(int ListIndex, const Probe_Data* p_TheProbe);
433  double EMi; // EM in insect dry weight
434  void LoadParameters();
435  int m_StriglingMort[4];
443  // SK POM Files
444  FILE* SKPOM1;
445  FILE* SKPOM2;
446 
447 public:
448  void CreateObjects(int ob_type, TAnimal* pTAo, void* null, Skylark_struct* data, int number);
449  virtual void Init(void);
450 
451  void WriteSKPOM1(const int n, const int n2) const { fprintf(SKPOM1, "%i\t%i\n", n, n2); }
452  void WriteSKPOM2(const int n, const int n2) const { fprintf(SKPOM2, "%i\t%i\n", n, n2); }
453 
454  int SupplyM_Mig_Mort() const { return M_Mig_Mort; }
455 
456  int SupplyF_Mig_Mort() const { return F_Mig_Mort; }
457 
458  int SupplyNoTerritories() const;
459  int TheSkylarkTerrsSupply_x(int) const;
460  int TheSkylarkTerrsSupply_y(int) const;
461  int TheSkylarkTerrsSupply_size(int) const;
462  int TheSkylarkTerrsSupply_quality(int) const;
463 
464  void SetM_Mig_Mort(const int m) { M_Mig_Mort = m; }
465 
466  void SetF_Mig_Mort(const int m) { F_Mig_Mort = m; }
468 
469  ~Skylark_Population_Manager(void) override;
470  // Special interfact functions for outputs
471  int TheFledgelingProbe() override;
472  void BreedingPairsOutput(int Time) override;
473  void FledgelingProbeOutput(int Total, int Time) override;
474  int TheBreedingFemalesProbe(int ProbeNo) override;
475  bool OpenTheBreedingPairsProbe() override;
476  bool OpenTheFledgelingProbe() override;
477 
478  void incNoFledgeDeaths() { m_NoFledgeDeaths++; }
479 
480  void incNoChickDeaths() { m_NoChickDeaths++; }
481 
482  void incNoPestEffects() { m_NoPestEffects++; }
483 
484  void incTotalEggs(const int eggs) { m_TotalEggs += eggs; }
485 
486  void incTotalNestlings() { m_TotalNestlings++; }
487 
488  void incTotalPrefledgelings() { m_TotalPrefledgelings++; }
489 
490  void AddStriglingMort(const int lifestage) { m_StriglingMort[lifestage]++; }
491 
492  double SupplyEMi() const { return EMi; }
493 
494  bool IsBadWeather() const { return m_IsBadWeather; }
495 
498  bool OpenTheBreedingSuccessProbe() override;
499  void BreedingSuccessProbeOutput(double, int, int, int, int, int, int, int) override;
500  int TheBreedingSuccessProbe(int& BreedingFemales, int& YoungOfTheYear, int& TotalPop, int& TotalFemales, int& TotalMales,
501  int& BreedingAttempts) override;
502  void TheAOROutputProbe() override;
503  virtual void TheRipleysOutputProbe(FILE* a_prb);
504 
505 protected:
506  void Catastrophe() override;
507  virtual void ReHouse();
508 };
509 
510 //------------------------------------------------------------------------------
511 
512 class Skylark_Base : public TAnimal {
513 public:
514 #ifdef __CJTDebug_10
515  long m_Ref;
516 #endif
518  int Age;
519  double m_Size;
520  int m_Born_x;
521  int m_Born_y;
523  int m_MyHome;
524  // Object References
527  Skylark_Base(int x, int y, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by, int mh);
528  virtual void ReInit(int x, int y, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by, int mh);
529  virtual double On_FoodSupply(double /* food */) { return 0.0; }
530 
531  void AddStriglingMort(const int lifestage) const { m_OurPopulationManager->AddStriglingMort(lifestage); }
532 
533  // Returns the state number
534  int WhatState() override { return m_CurrentSkState; }
535 
536  bool InSquare(rectangle R) const;
537 
538 protected:
539  static bool DailyMortality(int mort);
540 #ifdef __PESTICIDE_RA
541  double m_pcide;
542 public:
543  double m_pesticide_accumulation;
544  double m_pcide_conc;
545  virtual void PesticideResponse() {
546  }
547 #endif
548 };
549 
550 //------------------------------------------------------------------------------
551 
552 class Skylark_Clutch : public Skylark_Base {
553 protected:
554  // Behaviours
555  int st_Developing();
556  int st_Hatching();
557  void st_Dying();
558  // Attributes
561  bool OnFarmEvent(FarmToDo event) override;
562 
563 public:
564  // Behaviours
565  void BeginStep(void) override;
566  void Step(void) override;
567  void EndStep(void) override;
568  Skylark_Clutch(Skylark_Female* Mum, SkTerritories* Terrs, Landscape* L, int NoEggs, int x, int y, int mh, Skylark_Population_Manager* SPM);
569  virtual void ReInit(Skylark_Female* Mum, SkTerritories* Terrs, Landscape* L, int NoEggs, int x, int y, int mh,
571  void OnMumGone();
572 
573  void AddEgg() { Clutch_Size++; }
574 
576  m_CurrentSkState = toss_Developing;
577  // Must tell the pop man how many eggs were made
578  m_OurPopulationManager->incTotalEggs(Clutch_Size);
579  }
580 
581  // Attributes
584 };
585 
586 //------------------------------------------------------------------------------
587 
589  //Attributes
590 protected:
591  bool Sex;
594  // double Growth;
596  double m_EM;
597  double m_GrNeed;
598  //Behaviours
599  virtual int st_Developing();
600  virtual void st_Maturing();
601  virtual void st_Dying();
602  bool OnFarmEvent(FarmToDo event) override;
603 #ifdef __PESTICIDE_RA
604  void PesticideResponse(void) override;
605 #endif
606 
607 public:
608  Skylark_Nestling(int x, int y, Skylark_Male* Daddy, Landscape* L, SkTerritories* Terrs, Skylark_Population_Manager* SPM, int bx, int by,
609  int mh);
610  virtual void ReInit(int x, int y, Skylark_Male* Daddy, Landscape* L, SkTerritories* Terrs, Skylark_Population_Manager* SPM, int bx, int by,
611  int mh);
612  void BeginStep(void) override;
613  void Step(void) override;
614  void EndStep(void) override;
615  //Interface
616  double On_FoodSupply(double food) override;
617  void OnDadDead();
618  void OnYouHaveBeenEaten();
619  void OnDeserted();
620 };
621 
622 //------------------------------------------------------------------------------
623 
625 protected:
626  int st_Developing() override;
627  void st_Maturing() override;
628  void st_Dying() override;
629  double GetFood() const;
630  double GetFledgelingEM(int Age) const;
631  bool OnFarmEvent(FarmToDo event) override;
632 #ifdef __PESTICIDE_RA
633  void PesticideResponse() override;
634 #endif
635 
636 public:
637  Skylark_PreFledgeling(int x, int y, Landscape* L, SkTerritories* Terrs, Skylark_Male* Daddy, bool sex, double size, int age,
638  Skylark_Population_Manager* SPM, int bx, int by, int mh);
639  virtual void ReInit(int x, int y, Landscape* L, SkTerritories* Terrs, Skylark_Male* Daddy, bool sex, double size, int age,
640  Skylark_Population_Manager* SPM, int bx, int by, int mh);
641  void BeginStep(void) override;
642  void Step(void) override;
643  void EndStep(void) override;
644 };
645 
646 //------------------------------------------------------------------------------
647 
648 class Skylark_Adult : public Skylark_Base {
649 protected:
650  // Methods
651  virtual double RemoveEM(double food);
652  double GetVegHindrance(int PolyRef) const;
653  double GetWeatherHindrance() const;
654  static bool GetBadWeather();
655  // Attributes
657  bool BSuccess;
658  double MyExtractEff;
661  vector<APoint>* m_aTerrlist;
662 
663 public:
664  Skylark_Adult(int x, int y, double size, int age, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by,
665  int mh);
666  virtual void ReInit(int x, int y, double size, int age, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by,
667  int mh);
668  ~Skylark_Adult() override;
669  // Attributes
670  bool Paired;
671  virtual void CopyMyself(int a_sktype);
672 };
673 
674 //------------------------------------------------------------------------------
675 
677 protected:
678  int st_Flocking();
679  int st_Floating();
680  bool st_Arriving();
681  bool st_Immigrating();
682  int st_Emigrating();
683  int st_TempLeavingArea();
684  int st_Finding_Territory();
685  void st_Dying();
686  int st_CaringForYoung();
687  int st_BuildingUpResources();
688  TTypesOfSkState st_MakingNest();
689  int st_PreparingForBreeding();
690  int st_GivingUpTerritory();
691  TTypesOfSkState st_Laying();
692  int st_StartingNewBrood();
693  int st_EggHatching();
694  int st_Incubating();
695  int st_StoppingBreeding();
696  double GetFood(int time);
697  int CalculateEggNumber() const;
698  int CalcFoodTime(double target) const;
699  int GetMigrationMortality();
700  double CheckForFields() const;
701  void FeedYoung();
702  bool OnFarmEvent(FarmToDo event) override;
703 #ifdef __PESTICIDE_RA
704  void PesticideResponse() override;
705 #endif
706  //bool TestNestPos( int x, int y );
707  skSpiralResult Spiral(int x, int y, int radius);
708  skSpiralResult Spiral2(int x, int y, int radius);
709  // Attributes
713  bool NestLoc;
714  double Resources;
720  int m_toowet;
722 
723 public:
725  // Methods
726  Skylark_Female(int x, int y, double size, int age, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by,
727  int mh);
728  void ReInit(int x, int y, double size, int age, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by,
729  int mh) override;
730  void BeginStep(void) override;
731  void Step(void) override;
732  void EndStep(void) override;
733  void EstablishTerritory();
734 
735  //Interface
736  int Supply_NestTime() const { return m_NestTime; }
737 
738  Skylark_Clutch* SupplyMyClutch() const { return MyClutch; }
739 
740  int Supply_BreedingAttempts() const;
741  int Supply_BreedingSuccess() const;
742  void ResetBreedingSuccess();
743 
744  void OnSetMyClutch(Skylark_Clutch* p_C) { MyClutch = p_C; }
745 
746  void OnEggsHatch();
747  void OnClutchDeath();
748  void OnBroodDeath();
749  void OnBreedingSuccess();
750  void OnStopFeedingChicks();
751  void OnMateDying();
752  void OnMateHomeless();
753  void OnMaleNeverComesBack(const Skylark_Male* AMale);
754  void OnBreedSuccess() { m_BreedingSuccess++; }
755  void SensibleCopy();
756 };
757 
758 //------------------------------------------------------------------------------
759 
760 class Skylark_Male : public Skylark_Adult {
761 protected:
762  // Attributes
763  // Functions
764  int st_Flocking();
765  TTypesOfSkState st_Floating();
766  bool st_Arriving() const;
767  bool st_Immigrating();
768  int st_Emigrating();
769  int st_TempLeavingArea();
770  int st_FindingTerritory();
771  int st_AttractingAMate();
772  int st_FollowingMate();
773  void ConstructAHabitatTable();
774  int EstablishingATerritory();
775  int st_ScaringOffChicks();
776  int st_CaringForYoung();
777  void st_Dying();
779  void ReEvaluateTerritory();
780  double GetFood(int time);
781  void OptimiseHabitatSearchingOrder();
782  int GetMigrationMortality();
783  bool OnFarmEvent(FarmToDo event) override;
784 #ifdef __PESTICIDE_RA
785  void PesticideResponse() override;
786 #endif
787  // Attributes
789  bool m_firstPF;
792  Skylark_Nestling* m_Brood[26]; //NB Nestling = base class for PreFledgling
795 
796 public:
797  //for debugging
799  // to here
800  int BroodAge;
801 
802 public:
803  // Attributes
804  // Male's list of his habitats and their sizes & food availability
805  // **CJT** could be more efficient to move these three to the territory
806  vector<int> m_HabitatTable_PNum;
807  vector<int> m_HabitatTable_Size;
808  vector<double> m_InsectTable;
809 #ifdef __PESTICIDE_RA
810  vector<double> m_PConcTable;
811 #endif
812  //
814  // Methods
815  Skylark_Male(int x, int y, double size, int age, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by,
816  int mh);
817  ~Skylark_Male() override;
818  void ReInit(int x, int y, double size, int age, SkTerritories* Terrs, Landscape* L, Skylark_Population_Manager* SPM, int bx, int by,
819  int mh) override;
820  void BeginStep(void) override;
821  void Step(void) override;
822  void EndStep(void) override;
823  // Interface functions
824 #ifdef __CJTDebug_5
825  bool DoIExistN( Skylark_Nestling * N );
826  bool DoIExistP( Skylark_PreFledgeling * N );
827 #endif
828  bool OnEvicted();
829 
830  int SupplyNoHabitatRefs() const { return No_HabitatTable_Refs; }
831 
832  int SupplyBroodSize() const { return m_BroodSize; }
833 
834  int SupplyBroodAge(const int n) const { return m_Brood[n]->Age; }
835 
837  double Supply_TerritoryQual() const { return MyTerritory.nqual; }
838 
839  int SupplyBroodWeight(const int n) const { return static_cast<int>(m_Brood[n]->m_Size); }
840 
841 #ifndef __PESTICIDE_RA_CHICK
842  double OnFoodMessage(const int n, const double f) const {
843  const double extra = m_Brood[n]->On_FoodSupply(f);
844  return extra;
845  }
846 #else
847  double OnFoodMessage( int n, double f , double p )
848  {
849  double extra = m_Brood[n]->On_FoodSupply( f );
850  m_Brood[n]->m_pesticide_accumulation+= (((f-extra)/f)*p);
851  return extra;
852  }
853 #endif
854 
855  void OnAddNestling(Skylark_Nestling* N);
856  void OnAddPreFledgeling(Skylark_PreFledgeling* P, const Skylark_Nestling* N);
857  skTerritory_struct Supply_Territory() const;
858  int DefendTerritory() const;
859  void OnEggHatch();
860  void OnMateDying();
861  void OnMateLeaving();
862  void OnPairing(Skylark_Female* female);
863  void OnBroodDeath();
864  void OnNestLocation(int x, int y);
865  void OnNestlingDeath(const Skylark_Nestling* N);
866  void OnPreFledgelingDeath(const Skylark_PreFledgeling* P);
867  void OnPreFledgelingMature(const Skylark_PreFledgeling* P);
868  void OnMateNeverComesBack(const Skylark_Female* AFemale);
869  void OnNestPredatation();
870  void OnBroodDesertion();
871  void OnReHouse();
872  void SensibleCopy();
873  bool SupplyNestValid() const { return m_OurPopulationManager->TheSkylarkTerrs->SupplyIsNestValid(MyTerritory.ref); }
874  APoint SupplyNestLoc() const { return m_OurPopulationManager->TheSkylarkTerrs->SupplyNestPosition(MyTerritory.ref); }
875 };
876 
877 //------------------------------------------------------------------------------
878 #endif
cfg_PEmax
CfgFloat cfg_PEmax("SK_PEMAX", CFG_CUSTOM, 4.54)
cfg_tramline_foraging
CfgFloat cfg_tramline_foraging("SK_TRAMLINE_FORAGING_PROP", CFG_CUSTOM, 0.45)
Skylark_PreFledgeling::Step
void Step(void) override
Step behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:3306
Skylark_Male::DefendTerritory
int DefendTerritory() const
Definition: skylarks_all.cpp:4520
SkQualGrid::m_polys
vector< int > m_polys
Definition: skylarks_all.h:312
Skylark_Female::NestLoc
bool NestLoc
Definition: skylarks_all.h:713
skTTerritory::SetNestPossibility
void SetNestPossibility(const bool valid, const int nx, const int ny)
Definition: skylarks_all.h:284
TOP_Skylark
Definition: PopulationManager.h:59
TAnimal::Supply_m_Location_x
int Supply_m_Location_x() const
Returns the ALMaSS x-coordinate.
Definition: PopulationManager.h:239
fiber_removal
Definition: Treatment.h:129
skClutch_struct::No
int No
Definition: skylarks_all.h:225
fp_rsm
Definition: Treatment.h:64
cfg_skylark_pesticide_globaleggshellreduction
CfgFloat cfg_skylark_pesticide_globaleggshellreduction
The proportion of eggs assumed to crack from pesticide effects as a global effect.
cfg_SkStartNos
CfgInt cfg_SkStartNos("SK_STARTNOS", CFG_CUSTOM, 6000)
The number of skylarks that start in the simulation.
org_insecticide
Definition: Treatment.h:84
skSpiralResult::y
int y
Definition: skylarks_all.h:201
cfg_hindconstantH_b
CfgFloat cfg_hindconstantH_b("SK_HINDCONSTH_B", CFG_CUSTOM,-0.025)
fa_sk
Definition: Treatment.h:71
cfg_MinDaysToHatch
CfgFloat cfg_MinDaysToHatch
The time taken to egg hatch under optimal conditions.
NestlingMortProb
static int NestlingMortProb
Definition: skylarks_all.cpp:159
Skylark_Male::st_Floating
TTypesOfSkState st_Floating()
Definition: skylarks_all.cpp:4561
Skylark_Nestling::m_EM
double m_EM
Definition: skylarks_all.h:596
row_cultivation
Definition: Treatment.h:88
SkTerritories::SupplyNoFemaleOccupied
int SupplyNoFemaleOccupied() const
Definition: skylarks_all.cpp:1373
fa_pk
Definition: Treatment.h:68
WARN_FILE
Definition: MapErrorMsg.h:37
Skylark_Male::SupplyNestValid
bool SupplyNestValid() const
Definition: skylarks_all.h:873
SkTerritories::PreEvaluateHabitat
int PreEvaluateHabitat(int a_x, int a_y, int a_range_x, int a_range_y) const
Definition: skylarks_all.cpp:1600
Skylark_Male::st_FollowingMate
int st_FollowingMate()
Definition: skylarks_all.cpp:4577
SkTerritories::PreFillQualGrid
void PreFillQualGrid(void)
Definition: skylarks_all.cpp:1495
Skylark_Population_Manager::m_NoPestEffects
int m_NoPestEffects
Definition: skylarks_all.h:441
Skylark_Population_Manager::incTotalEggs
void incTotalEggs(const int eggs)
Definition: skylarks_all.h:484
winter_harrow
Definition: Treatment.h:144
Skylark_Clutch
Definition: skylarks_all.h:552
cfg_PEmax
CfgFloat cfg_PEmax
fp_npk
Definition: Treatment.h:52
strigling
Definition: Treatment.h:89
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
skTTerritory::F_Owner
Skylark_Female * F_Owner
Definition: skylarks_all.h:280
Skylark_Adult::RemoveEM
virtual double RemoveEM(double food)
Definition: skylarks_all.cpp:3527
harvest
Definition: Treatment.h:94
Breed_Res_Thresh1
static int Breed_Res_Thresh1
Definition: skylarks_all.cpp:167
cfg_densityconstant_b
CfgFloat cfg_densityconstant_b("SK_DENSITYCONST_B", CFG_CUSTOM,-0.26)
Skylark_PreFledgeling::BeginStep
void BeginStep(void) override
BeingStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:3302
cfg_densityconstant_c
CfgInt cfg_densityconstant_c("SK_DENSITYCONST_C", CFG_CUSTOM, 10)
fa_nk
Definition: Treatment.h:142
Skylark_Male::m_HabitatTable_Size
vector< int > m_HabitatTable_Size
Definition: skylarks_all.h:807
SkTerritories::SupplyIsNestValid
bool SupplyIsNestValid(const int ref) const
Definition: skylarks_all.h:405
Skylark_Population_Manager::SupplyF_Mig_Mort
int SupplyF_Mig_Mort() const
Definition: skylarks_all.h:456
Skylark_Base::AddStriglingMort
void AddStriglingMort(const int lifestage) const
Definition: skylarks_all.h:531
Skylark_Male::OnReHouse
void OnReHouse()
Definition: skylarks_all.cpp:4085
SkTerritories::PreMakeForIterator
static int PreMakeForIterator(int a_min_incl, int a_max_excl, int *a_iter, int a_norm_max_excl)
Definition: skylarks_all.cpp:1875
Population_Manager::SupplyAnimalPtr
virtual TAnimal * SupplyAnimalPtr(unsigned int a_index, unsigned int a_animal)
Returns the pointer indexed by a_index and a_animal. Note NO RANGE CHECK.
Definition: PopulationManager.h:678
Landscape::SupplyTemp
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
Skylark_Adult
Definition: skylarks_all.h:648
skSpiralResult
Definition: skylarks_all.h:198
cfg_skylark_pesticide_eggshellreduction
CfgFloat cfg_skylark_pesticide_eggshellreduction("SK_PESTICIDEEGGSHELLREDUC", CFG_CUSTOM, 0.0)
The proportion of eggs assumed to crack from pesticide effects.
cfg_NestLeavingWeight
CfgFloat cfg_NestLeavingWeight("SK_NEST_LEAVING_WEIGHT", CFG_CUSTOM, 20.5)
Skylark_Male::OptimiseHabitatSearchingOrder
void OptimiseHabitatSearchingOrder()
Definition: skylarks_all.cpp:4971
insecticide_treat
Definition: Treatment.h:83
skTTerritory::m_nest_pos_validy
int m_nest_pos_validy
Definition: skylarks_all.h:269
straw_chopping
Definition: Treatment.h:99
SkTerritories::Tick
void Tick(void)
Definition: skylarks_all.h:372
Skylark_Population_Manager::AddStriglingMort
void AddStriglingMort(const int lifestage)
Definition: skylarks_all.h:490
Skylark_Base::WhatState
int WhatState() override
Returns the objects current state number.
Definition: skylarks_all.h:534
cfg_PmEventfrequency
CfgInt cfg_PmEventfrequency
Landscape::SupplyVegType
TTypesOfVegetation SupplyVegType(int a_x, int a_y)
Returns the vegetation type of the polygon using the polygon reference number a_polyref or coordinate...
Definition: Landscape.h:1925
cfg_HQualityTrack
CfgInt cfg_HQualityTrack("SK_HQTRACK", CFG_CUSTOM, 10)
Skylark_Female::m_NestTime
int m_NestTime
Definition: skylarks_all.h:712
fa_greenmanure
Definition: Treatment.h:76
SkTerritories::Supply_terr
skTTerritory * Supply_terr(int ref) const
Definition: skylarks_all.cpp:1380
Landscape::SupplyElementType
TTypesOfLandscapeElement SupplyElementType(int a_polyref)
Returns the landscape type of the polygon using the polygon reference number a_polyref or coordinates...
Definition: Landscape.h:1732
cfg_NestLeavingChance
CfgInt cfg_NestLeavingChance("SK_NESTLEAVECHANCE", CFG_CUSTOM, 23)
Skylark_Population_Manager::EMi
double EMi
Definition: skylarks_all.h:433
stubble_plough
Definition: Treatment.h:35
Skylark_Female::Step
void Step(void) override
Step behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:5258
SkTerritories::PreFillQualCache
void PreFillQualCache(void)
Definition: skylarks_all.cpp:1573
growth_regulator
Definition: Treatment.h:81
skTerritory_struct
Definition: skylarks_all.h:297
SkTerritories::~SkTerritories
~SkTerritories()
Definition: skylarks_all.cpp:1345
tole_UnsprayedFieldMargin
Definition: LandscapeFarmingEnums.h:94
SkTerritories::m_sim_h_div_10
int m_sim_h_div_10
Definition: skylarks_all.h:337
cfg_EM_Nestling_b
CfgFloat cfg_EM_Nestling_b
Skylark_Male::st_AttractingAMate
int st_AttractingAMate()
Definition: skylarks_all.cpp:4543
skTerritory_struct::validnest
bool validnest
Definition: skylarks_all.h:304
cfg_ClutchMortProb
CfgInt cfg_ClutchMortProb("SK_CLUTCH_MORT_PROB", CFG_CUSTOM, 350)
ClutchMortProb
static int ClutchMortProb
Definition: skylarks_all.cpp:158
Skylark_Male::OnEvicted
bool OnEvicted()
Definition: skylarks_all.cpp:4063
Population_Manager_Base::SupplySimH
int SupplySimH() const
Returns landscape height in m.
Definition: PopulationManager.h:569
cfg_skylark_pesticide_eggshellreduction
CfgFloat cfg_skylark_pesticide_eggshellreduction
The proportion of eggs assumed to crack from pesticide effects.
cfg_strigling_clutch
CfgInt cfg_strigling_clutch("SK_STRIGLING_C", CFG_CUSTOM, 72)
Landscape::VegtypeToString
std::string VegtypeToString(TTypesOfVegetation a_veg)
Returns the text representation of a TTypesOfVegetation type.
Definition: Landscape.cpp:6518
skTTerritory::m_heterogeneity
double m_heterogeneity
Definition: skylarks_all.h:292
deep_ploughing
Definition: Treatment.h:43
hilling_up
Definition: Treatment.h:91
Skylark_Nestling::Step
void Step(void) override
Step behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:2859
cfg_Skylark_female_NOEL
CfgFloat cfg_Skylark_female_NOEL
Can be used to trigger a response to pesticides for the females.
green_harvest
Definition: Treatment.h:127
Skylark_Population_Manager::Init
virtual void Init(void)
Definition: skylarks_all.cpp:297
autumn_or_spring_plough
Definition: Treatment.h:103
HeightScore
double HeightScore[111]
Definition: skylarks_all.cpp:193
cfg_ReturnProbability
CfgFloat cfg_ReturnProbability
Used to change the timing of start of arrival in the landscape.
Population_Manager::m_population_type
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
flower_cutting
Definition: Treatment.h:121
cfg_HQualityWater
CfgInt cfg_HQualityWater("SK_HQWATER", CFG_CUSTOM, 0)
Skylark_Male::SupplyNoHabitatRefs
int SupplyNoHabitatRefs() const
Definition: skylarks_all.h:830
Skylark_Male::SupplyBroodSize
int SupplyBroodSize() const
Definition: skylarks_all.h:832
Skylark_Nestling::st_Maturing
virtual void st_Maturing()
Definition: skylarks_all.cpp:2999
skTTerritory::SetQuality
void SetQuality(const int a_qual)
Definition: skylarks_all.h:278
Skylark_Adult::GetVegHindrance
double GetVegHindrance(int PolyRef) const
Definition: skylarks_all.cpp:3567
Skylark_Male::GoodWeather
int GoodWeather
Definition: skylarks_all.h:790
AdultSkylark_struct::sex
bool sex
Definition: skylarks_all.h:251
Landscape::SupplySkScrapes
bool SupplySkScrapes(int a_polyref)
Returns the presence of skylark scrapes in the vegetation using the polygon reference number a_polyre...
Definition: Landscape.h:1567
FoodTripsPerDay
static int FoodTripsPerDay
Definition: skylarks_all.cpp:166
SkTerritories::PreCachePoly
void PreCachePoly(int a_poly)
Definition: skylarks_all.cpp:1493
Skylark_Male::st_ScaringOffChicks
int st_ScaringOffChicks()
Definition: skylarks_all.cpp:4779
Skylark_PreFledgeling::ReInit
virtual void ReInit(int x, int y, Landscape *L, SkTerritories *Terrs, Skylark_Male *Daddy, bool sex, double size, int age, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:3125
Population_Manager::BeforeStepActions
vector< unsigned > BeforeStepActions
Holds the season list of possible before step actions.
Definition: PopulationManager.h:819
g_land
Landscape * g_land
Definition: skylarks_all.cpp:44
spring_plough
Definition: Treatment.h:44
cfg_CatastropheEventStartYear
CfgInt cfg_CatastropheEventStartYear
skTTerritory::SetVirtualDiameter
void SetVirtualDiameter(const double dia)
Definition: skylarks_all.h:272
fp_sk
Definition: Treatment.h:56
pruning
Definition: Treatment.h:125
HQualityOpenTallVeg
int HQualityOpenTallVeg
Definition: skylarks_all.cpp:228
Skylark_Female::SupplyMyClutch
Skylark_Clutch * SupplyMyClutch() const
Definition: skylarks_all.h:738
Skylark_Male::GetMigrationMortality
int GetMigrationMortality()
Definition: skylarks_all.cpp:4532
cfg_HQualityHedge
CfgInt cfg_HQualityHedge("SK_HQHEDGE", CFG_CUSTOM, -250)
Landscape::CorrectCoords
void CorrectCoords(int &x, int &y)
Function to prevent wrap around errors with co-ordinates using x/y pair.
Definition: Landscape.h:2206
skTTerritory::m_polys
vector< int > m_polys
Definition: skylarks_all.h:259
KcalPerGInsect_inv
const double KcalPerGInsect_inv
Definition: skylarks_all.cpp:176
Skylark_Population_Manager::ReHouse
virtual void ReHouse()
Definition: skylarks_all.cpp:1145
Skylark_Female::OnStopFeedingChicks
void OnStopFeedingChicks()
Definition: skylarks_all.cpp:5458
Skylark_Base::m_CurrentSkState
TTypesOfSkState m_CurrentSkState
Definition: skylarks_all.h:517
PreFledgeling_struct::Dad
Skylark_Male * Dad
Definition: skylarks_all.h:241
Landscape::SupplyGrazingPressure
int SupplyGrazingPressure(int a_polyref)
Returns the grazing pressure of the polygon using the polygon reference number a_polyref or coordinat...
Definition: Landscape.h:1848
VegHindranceD
double VegHindranceD[111]
Definition: skylarks_all.cpp:191
SkTerritories::Split
void Split(int ref)
Definition: skylarks_all.cpp:2034
skTTerritory::m_competitionscaler
double m_competitionscaler
Definition: skylarks_all.h:270
Skylark_Population_Manager::incNoFledgeDeaths
void incNoFledgeDeaths()
Definition: skylarks_all.h:478
fp_manure
Definition: Treatment.h:61
herbicide_treat
Definition: Treatment.h:80
fp_ammoniumsulphate
Definition: Treatment.h:60
HQualityMetalRoad
int HQualityMetalRoad
Definition: skylarks_all.cpp:232
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
cfg_PreFledgeMortProb
CfgInt cfg_PreFledgeMortProb
flammebehandling
Definition: Treatment.h:90
Skylark_struct::L
Landscape * L
Definition: skylarks_all.h:214
Skylark_Nestling::OnYouHaveBeenEaten
void OnYouHaveBeenEaten()
Definition: skylarks_all.cpp:3037
Population_Manager_Base::m_ListNames
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
straw_covering
Definition: Treatment.h:123
TramlinePremium
int TramlinePremium
Definition: skylarks_all.cpp:243
cfg_Skylark_nestling_NOEL
CfgFloat cfg_Skylark_nestling_NOEL
Can be used to trigger a response to pesticides for the nestlings.
SkTerritories::Supply_size
int Supply_size(int ref) const
Definition: skylarks_all.cpp:1394
cfg_EM_Nestling_a
CfgFloat cfg_EM_Nestling_a("SK_EM_NESTLING_A", CFG_CUSTOM, 0.8542)
cfg_AorOutput_used
CfgBool cfg_AorOutput_used
fp_boron
Definition: Treatment.h:131
Skylark_Population_Manager::WriteSKPOM1
void WriteSKPOM1(const int n, const int n2) const
Definition: skylarks_all.h:451
EggTemp
static double EggTemp
Definition: skylarks_all.cpp:163
skSpiralResult::x
int x
Definition: skylarks_all.h:200
Skylark_Population_Manager::SupplyEMi
double SupplyEMi() const
Definition: skylarks_all.h:492
Skylark_Adult::GetBadWeather
static bool GetBadWeather()
Extreme weather conditions check.
Definition: skylarks_all.cpp:3521
SkTerritories::PrePoly2Qual
double PrePoly2Qual(int a_poly)
Definition: skylarks_toletov.cpp:103
Skylark_Population_Manager::m_IsBadWeather
bool m_IsBadWeather
Definition: skylarks_all.h:442
July
const int July
Julian start dates of the month of July.
Definition: Landscape.h:50
fp_cu
Definition: Treatment.h:138
bulb_harvest
Definition: Treatment.h:122
cfg_juvreturnmort
CfgInt cfg_juvreturnmort
Immigration mortality for juveniles.
preseeding_cultivator
Definition: Treatment.h:39
SkTerritories::RemoveFemale
void RemoveFemale(int ref) const
Definition: skylarks_all.cpp:2026
AdultSkylark_struct::age
int age
Definition: skylarks_all.h:252
trial_control
Definition: Treatment.h:110
SkTerritories::RemoveMale
void RemoveMale(int ref) const
Definition: skylarks_all.cpp:2030
Landscape::SupplySnowcover
bool SupplySnowcover(void)
Passes a request on to the associated Weather class function, the snow cover for the current day.
Definition: Landscape.h:2091
SkTerritories::NoTerritories
int NoTerritories
Definition: skylarks_all.h:329
cfg_insecticide_direct_mortM
CfgInt cfg_insecticide_direct_mortM("SK_INSECTICDEDIRECTMORTM", CFG_CUSTOM, 0)
Skylark_Male::OnFoodMessage
double OnFoodMessage(const int n, const double f) const
Definition: skylarks_all.h:842
Skylark_Male::ReEvaluateTerritory
void ReEvaluateTerritory()
Daily re-evaluation of territory.
Definition: skylarks_all.cpp:4608
cfg_HQualityTallVeg
CfgInt cfg_HQualityTallVeg
fp_npks
Definition: Treatment.h:51
Skylark_Female::st_Incubating
int st_Incubating()
Definition: skylarks_all.cpp:6237
Landscape::SkylarkEvaluation
void SkylarkEvaluation(SkTerritories *a_skt)
Evaluation to find Skylark territory.
Definition: Landscape.cpp:5095
skTTerritory::m_Quality
int m_Quality
Definition: skylarks_all.h:293
CfgFloat::value
double value() const
Definition: Configurator.h:142
Skylark_struct::by
int by
Definition: skylarks_all.h:212
Skylark_Clutch::st_Developing
int st_Developing()
Definition: skylarks_all.cpp:2451
Skylark_Population_Manager::ProbeReportPOM
void ProbeReportPOM(int a_time)
Definition: skylarks_all.cpp:1073
Skylark_Male::SupplyBroodAge
int SupplyBroodAge(const int n) const
Definition: skylarks_all.h:834
cfg_strigling_preflg
CfgInt cfg_strigling_preflg("SK_STRIGLING_PF", CFG_CUSTOM, 72)
SkTerritories::SkTerritories
SkTerritories(Landscape *L)
Definition: skylarks_all.cpp:1331
burn_top
Definition: Treatment.h:143
EM_nest_T
const double EM_nest_T[14]
Definition: skylarks_all.cpp:144
FarmToDo
FarmToDo
Definition: Treatment.h:31
Skylark_Population_Manager::Skylark_Population_Manager
Skylark_Population_Manager(Landscape *L)
Definition: skylarks_all.cpp:268
PatchyPremium
int PatchyPremium
Definition: skylarks_all.cpp:239
cfg_adultreturnmort
CfgInt cfg_adultreturnmort
Immigration mortality for juveniles.
fp_nk
Definition: Treatment.h:133
cfg_Cooling_Rate_Eggs
CfgFloat cfg_Cooling_Rate_Eggs("SK_COOLING_RATE_EGGS", CFG_CUSTOM, 3.0)
Maximum immigration mortality for females.
Skylark_Population_Manager::incTotalPrefledgelings
void incTotalPrefledgelings()
Definition: skylarks_all.h:488
cfg_FoodTripsPerDay
CfgInt cfg_FoodTripsPerDay
Skylark_Base::m_Born_y
int m_Born_y
Definition: skylarks_all.h:521
Skylark_Male::OnBroodDeath
void OnBroodDeath()
Definition: skylarks_all.cpp:4214
SkTerritories::m_sim_w_div_10
int m_sim_w_div_10
Definition: skylarks_all.h:337
Skylark_Clutch::st_Dying
void st_Dying()
Definition: skylarks_all.cpp:2602
Skylark_Population_Manager::LoadParameters
void LoadParameters()
Definition: skylarks_all.cpp:423
February
const int February
Julian start dates of the month of February.
Definition: Landscape.h:40
cfg_SkScrapesPremiumII
CfgFloat cfg_SkScrapesPremiumII
AnimalPosition::m_x
unsigned m_x
Definition: PopulationManager.h:173
burn_straw_stubble
Definition: Treatment.h:104
org_herbicide
Definition: Treatment.h:85
Skylark_struct::x
int x
Definition: skylarks_all.h:209
Skylark_Female::Supply_BreedingAttempts
int Supply_BreedingAttempts() const
Definition: skylarks_all.cpp:5894
skTerritory_struct::ref
int ref
Definition: skylarks_all.h:302
rectangle::m_y1
unsigned m_y1
Definition: PopulationManager.h:117
g_map_maxpolyref
CfgInt g_map_maxpolyref
cfg_ReallyBigOutputMonthly_used
CfgBool cfg_ReallyBigOutputMonthly_used
cfg_sk_triplength
CfgFloat cfg_sk_triplength
Skylark_Female::OnMaleNeverComesBack
void OnMaleNeverComesBack(const Skylark_Male *AMale)
Definition: skylarks_all.cpp:5879
SkTerritories::m_qual_grid_signal
int m_qual_grid_signal
Definition: skylarks_all.h:338
Skylark_Male::OnPairing
void OnPairing(Skylark_Female *female)
Definition: skylarks_all.cpp:4729
TempHindrance
double TempHindrance[31]
Definition: skylarks_all.cpp:189
g_stopdate
int g_stopdate
Definition: skylarks_all.cpp:40
MeanHatchingWeight
static double MeanHatchingWeight
Definition: skylarks_all.cpp:161
Skylark_Female::st_Emigrating
int st_Emigrating()
Definition: skylarks_all.cpp:5556
Skylark_Population_Manager::TheSkylarkTerrs
SkTerritories * TheSkylarkTerrs
Definition: skylarks_all.h:496
Skylark_Male::OnAddNestling
void OnAddNestling(Skylark_Nestling *N)
Definition: skylarks_all.cpp:4649
Skylark_Nestling
Definition: skylarks_all.h:588
SkTerritories::SimW
int SimW
Definition: skylarks_all.h:330
Skylark_Base::m_OurTerritories
SkTerritories * m_OurTerritories
Definition: skylarks_all.h:525
cfg_heightconstant_b
CfgFloat cfg_heightconstant_b
fa_cu
Definition: Treatment.h:140
HQualityNeutral
int HQualityNeutral
Definition: skylarks_all.cpp:234
autumn_roll
Definition: Treatment.h:38
Skylark_Female::BeginStep
void BeginStep(void) override
BeingStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:5209
strigling_hill
Definition: Treatment.h:117
Skylark_Nestling::st_Developing
virtual int st_Developing()
Definition: skylarks_all.cpp:2937
Skylark_Population_Manager::SetF_Mig_Mort
void SetF_Mig_Mort(const int m)
Definition: skylarks_all.h:466
JuvenileReturnMort
int JuvenileReturnMort
Definition: skylarks_all.cpp:199
heavy_cultivator_aggregate
Definition: Treatment.h:120
Skylark_Nestling::ReInit
virtual void ReInit(int x, int y, Skylark_Male *Daddy, Landscape *L, SkTerritories *Terrs, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:2635
TSkylarkList
Definition: skylarks_all.h:112
cfg_hindconstantD_b
CfgFloat cfg_hindconstantD_b
cfg_ReallyBigOutputUsed
CfgBool cfg_ReallyBigOutputUsed
Population_Manager_Base::m_ListNameLength
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
fp_manganesesulphate
Definition: Treatment.h:59
SkQualGrid::Insert
int Insert(const int a_poly)
Definition: skylarks_all.h:315
cfg_NestPlacementMinQual
CfgFloat cfg_NestPlacementMinQual("SK_NESTPLACEMENTMINQUAL", CFG_CUSTOM, 15)
Skylark_Nestling::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Must be reimplemented if used in descendent classes. Sets the action on a management event.
Definition: skylarks_all.cpp:2653
Skylark_Female::Supply_BreedingSuccess
int Supply_BreedingSuccess() const
Definition: skylarks_all.cpp:5904
skTTerritory::GetQuality
int GetQuality(void) const
Definition: skylarks_all.h:277
Skylark_Female::st_TempLeavingArea
int st_TempLeavingArea()
Definition: skylarks_all.cpp:5595
Skylark_Male::m_XFNestAcceptScore
double m_XFNestAcceptScore
Definition: skylarks_all.h:788
EM_warmblood2
const double EM_warmblood2
Definition: skylarks_all.cpp:182
hay_turning
Definition: Treatment.h:100
cfg_HQualityMetalRoad
CfgInt cfg_HQualityMetalRoad
Skylark_Nestling::m_NestLeavingChance
int m_NestLeavingChance
Definition: skylarks_all.h:593
Skylark_Male::st_FindingTerritory
int st_FindingTerritory()
Definition: skylarks_all.cpp:4400
skClutch_struct
Definition: skylarks_all.h:223
Skylark_Female::GetMigrationMortality
int GetMigrationMortality()
Definition: skylarks_all.cpp:6566
Skylark_Clutch::AddEgg
void AddEgg()
Definition: skylarks_all.h:573
VegQuality
const double VegQuality[31]
Definition: skylarks_all.cpp:171
TAnimal::SupplyFarmOwnerRef
unsigned SupplyFarmOwnerRef() const
Get the current location farm ref if any.
Definition: PopulationManager.cpp:1547
Skylark_Clutch::EndStep
void EndStep(void) override
EndStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:2398
last_treatment
Definition: Treatment.h:150
cfg_HQualityHedge
CfgInt cfg_HQualityHedge
VegHindranceH
double VegHindranceH[111]
Definition: skylarks_all.cpp:190
straw_removal
Definition: Treatment.h:124
cfg_heightconstant_a
CfgFloat cfg_heightconstant_a("SK_HEIGHTCONST_A", CFG_CUSTOM, 1)
Landscape::SupplyVegDensity
int SupplyVegDensity(int a_polyref)
Returns the density of the vegetation using the polygon reference number a_polyref or based on the x,...
Definition: Landscape.h:1562
Skylark_Population_Manager::SKPOM1
FILE * SKPOM1
Definition: skylarks_all.h:444
Skylark_PreFledgeling::GetFood
double GetFood() const
Definition: skylarks_all.cpp:3426
cfg_HQualityTall2
CfgInt cfg_HQualityTall2("SK_HQTALLVEGTWO", CFG_CUSTOM, -1000)
not_nest_friendly
bool not_nest_friendly(int x, int y)
Definition: skylarks_toletov.cpp:23
Skylark_Female::SensibleCopy
void SensibleCopy()
Definition: skylarks_all.cpp:6620
fa_n
Definition: Treatment.h:139
Skylark_Female::st_BuildingUpResources
int st_BuildingUpResources()
Definition: skylarks_all.cpp:5924
cfg_fecundity_reduc_chance
CfgInt cfg_fecundity_reduc_chance("SK_FECUNDITY_REDUC_CHANCE", CFG_CUSTOM, 0)
MD_Hatch
static double MD_Hatch
Definition: skylarks_all.cpp:168
shredding
Definition: Treatment.h:126
Skylark_Adult::m_pesticide_affected
int m_pesticide_affected
Definition: skylarks_all.h:659
cfg_HQualityMetalRoad
CfgInt cfg_HQualityMetalRoad("SK_HQMETALROAD", CFG_CUSTOM, -10)
Skylark_Population_Manager::VegTypeFledgelings
int * VegTypeFledgelings
Definition: skylarks_all.h:497
skTTerritory::m_hr_sizes
vector< int > m_hr_sizes
Definition: skylarks_all.h:262
cfg_NestlingMortProb
CfgInt cfg_NestlingMortProb
rectangle::m_x2
unsigned m_x2
Definition: PopulationManager.h:118
Skylark_Female::st_PreparingForBreeding
int st_PreparingForBreeding()
Definition: skylarks_all.cpp:5955
pheromone
Definition: Treatment.h:149
cfg_maxfeedrain
CfgFloat cfg_maxfeedrain
skTerritory_struct::size
int size
Definition: skylarks_all.h:301
Skylark_Female::st_MakingNest
TTypesOfSkState st_MakingNest()
Definition: skylarks_all.cpp:5992
fp_n
Definition: Treatment.h:132
skTTerritory::TestNestPossibility
void TestNestPossibility()
Definition: skylarks_all.cpp:1261
Skylark_Female::st_GivingUpTerritory
int st_GivingUpTerritory()
Definition: skylarks_all.cpp:6166
manual_weeding
Definition: Treatment.h:148
Skylark_Male::OnMateDying
void OnMateDying()
Definition: skylarks_all.cpp:4140
CfgBool::value
bool value() const
Definition: Configurator.h:164
SkTerritories::IsValid
int IsValid(int nx, int ny) const
Definition: skylarks_all.cpp:1983
fa_npk
Definition: Treatment.h:67
Population_Manager_Base::m_TheLandscape
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
Skylark_Adult::GetWeatherHindrance
double GetWeatherHindrance() const
Definition: skylarks_all.cpp:3549
SkTerritories::IsGridPositionValid
bool IsGridPositionValid(const int &a_x, const int &a_y, int a_range) const
Definition: skylarks_all.cpp:1922
AdultSkylark_struct::size
double size
Definition: skylarks_all.h:250
winter_plough
Definition: Treatment.h:42
SkTerritories::TheLandscape
Landscape * TheLandscape
Definition: skylarks_all.h:381
fp_calcium
Definition: Treatment.h:65
Probe_Data
Data structure to hold & output probe data probe data is designed to be used to return the number of ...
Definition: PopulationManager.h:421
cfg_MD_Threshold
CfgFloat cfg_MD_Threshold("SK_MD_THRESHOLD", CFG_CUSTOM, 25.8)
Skylark_Nestling::m_Dad
Skylark_Male * m_Dad
Definition: skylarks_all.h:595
spring_harrow
Definition: Treatment.h:45
Breed_Res_Thresh2
const double Breed_Res_Thresh2
Definition: skylarks_all.cpp:210
skTTerritory::m_Location_x
int m_Location_x
Definition: skylarks_all.h:275
cut_to_silage
Definition: Treatment.h:98
Skylark_Male::m_firstPF
bool m_firstPF
Definition: skylarks_all.h:789
XFNestAcceptScore
double XFNestAcceptScore
Definition: skylarks_all.cpp:224
Skylark_Population_Manager::incNoChickDeaths
void incNoChickDeaths()
Definition: skylarks_all.h:480
Probe_Data::m_RefVeg
TTypesOfVegetation m_RefVeg[25]
Definition: PopulationManager.h:437
Skylark_Population_Manager::OpenTheBreedingPairsProbe
bool OpenTheBreedingPairsProbe() override
Definition: skylarks_all.cpp:817
Skylark_Male::GetFood
double GetFood(int time)
Definition: skylarks_all.cpp:4898
SkQualGrid::m_qual
double m_qual
Definition: skylarks_all.h:313
Population_Manager::m_AOR_Probe
AOR_Probe * m_AOR_Probe
A pointer to the AOR probe.
Definition: PopulationManager.h:875
Skylark_Female::CalculateEggNumber
int CalculateEggNumber() const
Definition: skylarks_all.cpp:6493
Skylark_Male::OnMateNeverComesBack
void OnMateNeverComesBack(const Skylark_Female *AFemale)
Definition: skylarks_all.cpp:4357
June
const int June
Julian start dates of the month of June.
Definition: Landscape.h:48
TTypesOfLandscapeElement
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
Skylark_Nestling::Sex
bool Sex
Definition: skylarks_all.h:591
Skylark_Population_Manager::incTotalNestlings
void incTotalNestlings()
Definition: skylarks_all.h:486
Skylark_Base::m_MyHome
int m_MyHome
The vegetation type where the skylark was born.
Definition: skylarks_all.h:523
TSkylarkList::Probe
double Probe(const Probe_Data *p_TheProbe)
Definition: skylarks_all.h:118
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
cfg_MD_Threshold
CfgFloat cfg_MD_Threshold
Skylark_Population_Manager::m_NoFledgeDeaths
int m_NoFledgeDeaths
Definition: skylarks_all.h:439
Skylark_Population_Manager::DoFirst
void DoFirst() override
Definition: skylarks_all.cpp:890
SkTerritories::Supply_x
int Supply_x(int ref) const
Definition: skylarks_all.cpp:1358
cfg_insecticide_direct_mortF
CfgInt cfg_insecticide_direct_mortF("SK_INSECTICDEDIRECTMORTF", CFG_CUSTOM, 0)
Skylark_struct::~Skylark_struct
virtual ~Skylark_struct()
Definition: skylarks_all.h:217
fa_sludge
Definition: Treatment.h:77
Skylark_Clutch::MinDegrees
int MinDegrees
Definition: skylarks_all.h:559
pigs_out
Definition: Treatment.h:96
skTTerritory::m_Location_y
int m_Location_y
Definition: skylarks_all.h:276
Skylark_Male::OnBroodDesertion
void OnBroodDesertion()
Definition: skylarks_all.cpp:4709
cfg_Skylark_prefledegling_NOEL
CfgFloat cfg_Skylark_prefledegling_NOEL
Used for determining the pesticide response for prefledglings.
SkQualGrid
Definition: skylarks_all.h:309
HQualityTrack
int HQualityTrack
Definition: skylarks_all.cpp:231
cfg_PatchyPremium
CfgInt cfg_PatchyPremium("SK_PATCHYPREMIUM", CFG_CUSTOM, 47)
fp_p
Definition: Treatment.h:54
AOR_Probe::DoProbe
virtual void DoProbe(int a_lifestage)
Definition: AOR_Probe.cpp:104
SkTerritories::Supply_F_Owner
Skylark_Female * Supply_F_Owner(int ref) const
Definition: skylarks_all.cpp:1386
suckering
Definition: Treatment.h:130
RainHindrance
double RainHindrance[21]
Definition: skylarks_all.cpp:188
cut_to_hay
Definition: Treatment.h:97
fa_boron
Definition: Treatment.h:141
SkTerritories::EvaluateAllTerritories
void EvaluateAllTerritories(void)
Definition: skylarks_all.cpp:1893
Skylark_Female::Skylark_Female
Skylark_Female(int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:5017
Landscape::SupplyPesticide
double SupplyPesticide(int a_x, int a_y, PlantProtectionProducts a_ppp)
Gets total pesticide for a location.
Definition: Landscape.cpp:1386
SkTerritories::Occupy
void Occupy(int ref, Skylark_Male *Male) const
Definition: skylarks_all.cpp:2018
KcalPerGInsect_kg_inv
const double KcalPerGInsect_kg_inv
Definition: skylarks_all.cpp:177
SkTerritories::PolyRefData
int PolyRefData[2500]
Definition: skylarks_all.h:377
Skylark_Population_Manager::F_Mig_Mort
int F_Mig_Mort
Definition: skylarks_all.h:432
Skylark_Nestling::m_GrNeed
double m_GrNeed
Definition: skylarks_all.h:597
rectangle
A struct defining two x,y coordinate sets of positive co-ords only.
Definition: PopulationManager.h:114
cfg_fecundity_reduc_chance
CfgInt cfg_fecundity_reduc_chance
HQualityTallVeg
int HQualityTallVeg
Definition: skylarks_all.cpp:241
Landscape::SupplySimAreaHeight
int SupplySimAreaHeight(void)
Gets the simulation landscape height.
Definition: Landscape.h:2302
Skylark_Female::CalcFoodTime
int CalcFoodTime(double target) const
Definition: skylarks_all.cpp:6521
Skylark_Population_Manager::OpenTheFledgelingProbe
bool OpenTheFledgelingProbe() override
Definition: skylarks_all.cpp:860
Skylark_Population_Manager::BreedingPairsOutput
void BreedingPairsOutput(int Time) override
Definition: skylarks_all.cpp:718
Landscape::SupplyFarmOwner
int SupplyFarmOwner(int a_x, int a_y)
Returns the farm owner pointer for the polygon referenced by a_polyref or a_x, a_y.
Definition: Landscape.h:1774
Calendar::Date
long Date(void)
Definition: Calendar.h:57
Skylark_Female::m_pesticide_sprayed_die
bool m_pesticide_sprayed_die
Definition: skylarks_all.h:719
Skylark_Female::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Must be reimplemented if used in descendent classes. Sets the action on a management event.
Definition: skylarks_all.cpp:5038
HQualityVeg30cm
int HQualityVeg30cm
Definition: skylarks_all.cpp:237
cfg_ConversionEffReduc
CfgFloat cfg_ConversionEffReduc("SK_CONVEFFREDEC", CFG_CUSTOM, 0.023077)
Landscape::SupplySimAreaWidth
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
cfg_insecticide_direct_mortN
CfgInt cfg_insecticide_direct_mortN("SK_INSECTICDEDIRECTMORTN", CFG_CUSTOM, 0)
HQualityHedge
int HQualityHedge
Definition: skylarks_all.cpp:235
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
cfg_HQualityBareEarth
CfgInt cfg_HQualityBareEarth("SK_HQBAREEARTH", CFG_CUSTOM, 3)
DensityScore
double DensityScore[111]
Definition: skylarks_all.cpp:192
MD_Threshold
static double MD_Threshold
Definition: skylarks_all.cpp:164
Skylark_Male::st_Immigrating
bool st_Immigrating()
Definition: skylarks_all.cpp:3995
fa_k
Definition: Treatment.h:70
SkTerritories::FemaleOccupy
void FemaleOccupy(int ref, Skylark_Female *Female) const
Definition: skylarks_all.cpp:2022
APoint
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:52
Skylark_Population_Manager::m_TotalEggs
int m_TotalEggs
Definition: skylarks_all.h:436
spring_roll
Definition: Treatment.h:46
cfg_Skylark_prefledegling_NOEL
CfgFloat cfg_Skylark_prefledegling_NOEL("SK_FLEDGE_NOEL", CFG_CUSTOM, 0.001)
Used for determining the pesticide response for prefledglings.
FemaleNestAcceptScore
double FemaleNestAcceptScore
Definition: skylarks_all.cpp:223
Skylark_Male::ReInit
void ReInit(int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) override
Definition: skylarks_all.cpp:3617
cfg_Skylark_female_NOEL
CfgFloat cfg_Skylark_female_NOEL("SK_FEMALE_NOEL", CFG_CUSTOM, 0.001)
Can be used to trigger a response to pesticides for the females.
cfg_MaleSplitScale
CfgFloat cfg_MaleSplitScale
cfg_MaleSplitScale
CfgFloat cfg_MaleSplitScale("SK_MALESPLITSCALE", CFG_CUSTOM, 0.5)
SkTerritories::m_poly_seen
int * m_poly_seen
Definition: skylarks_all.h:343
Skylark_Adult::Skylark_Adult
Skylark_Adult(int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:3488
cfg_Skylark_prefledegling_Biodegredation
CfgFloat cfg_Skylark_prefledegling_Biodegredation("SK_FLEDGE_BIODEG", CFG_CUSTOM, 0.0)
The proportion of pesticide remaining from one day to the next for prefledglings.
Cooling_Rate_Eggs
static double Cooling_Rate_Eggs
Definition: skylarks_all.cpp:162
cfg_juvreturnmort
CfgInt cfg_juvreturnmort("SK_JUVRETURNMORT", CFG_CUSTOM, 35)
Immigration mortality for juveniles.
TAnimal::m_OurLandscape
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
cfg_strigling_clutch
CfgInt cfg_strigling_clutch
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
TAnimal::CheckManagement
void CheckManagement()
Used to start a check for any management related effects at the objects current location.
Definition: PopulationManager.cpp:1591
cfg_EggTemp
CfgFloat cfg_EggTemp
terrsize
const int terrsize[6]
Definition: skylarks_all.cpp:170
Skylark_Nestling::Skylark_Nestling
Skylark_Nestling(int x, int y, Skylark_Male *Daddy, Landscape *L, SkTerritories *Terrs, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:2617
Skylark_Base
Definition: skylarks_all.h:512
Skylark_Clutch::ReInit
virtual void ReInit(Skylark_Female *Mum, SkTerritories *Terrs, Landscape *L, int NoEggs, int x, int y, int mh, Skylark_Population_Manager *SPM)
Definition: skylarks_all.cpp:2130
cfg_heightconstant_c
CfgInt cfg_heightconstant_c
SkTerritories::m_for_iter_x
int m_for_iter_x[1000]
Definition: skylarks_all.h:350
Skylark_Base::DailyMortality
static bool DailyMortality(int mort)
Definition: skylarks_all.cpp:2092
Skylark_Base::Age
int Age
Definition: skylarks_all.h:518
TAnimal::Supply_m_Location_y
int Supply_m_Location_y() const
Returns the ALMaSS y-coordinate.
Definition: PopulationManager.h:243
Skylark_Clutch::st_Hatching
int st_Hatching()
Definition: skylarks_all.cpp:2565
cfg_NestPlacementMinQual
CfgFloat cfg_NestPlacementMinQual
TAnimal
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
cfg_densityconstant_c
CfgInt cfg_densityconstant_c
Skylark_Male::st_Emigrating
int st_Emigrating()
Definition: skylarks_all.cpp:4031
skTTerritory::m_y_div10
int m_y_div10
Definition: skylarks_all.h:265
SkTerritories::Supply_quality
int Supply_quality(int ref) const
Definition: skylarks_all.cpp:2014
SkTerritories::GetTerritoriesByDistance
void GetTerritoriesByDistance(int nx, int ny, vector< APoint > *alist) const
Definition: skylarks_all.cpp:1999
syninsecticide_treat
Definition: Treatment.h:111
Skylark_Female::st_StoppingBreeding
int st_StoppingBreeding()
Definition: skylarks_all.cpp:6286
cfg_strigling_nestling
CfgInt cfg_strigling_nestling
TerrHeterogeneity
double TerrHeterogeneity[1000]
Definition: skylarks_all.cpp:194
SkTerritories::DumpMapGraphics
void DumpMapGraphics(const char *a_filename, Landscape *a_map) const
Definition: skylarks_all.cpp:1397
SkylarkObject
enum { sob_Clutch, sob_Nestling, sob_PreFledgeling, sob_Male, sob_Female } SkylarkObject
Definition: skylarks_all.h:41
Skylark_Nestling::OnDadDead
void OnDadDead()
Definition: skylarks_all.cpp:3025
Skylark_Population_Manager::SetM_Mig_Mort
void SetM_Mig_Mort(const int m)
Definition: skylarks_all.h:464
Skylark_Female::st_Finding_Territory
int st_Finding_Territory()
Definition: skylarks_all.cpp:5631
fp_nc
Definition: Treatment.h:135
Probe_Data::m_NoEleTypes
unsigned m_NoEleTypes
Definition: PopulationManager.h:434
cfg_temphindpow
CfgInt cfg_temphindpow("SK_TEMPHINDPOW", CFG_CUSTOM, 3)
fungicide_treat
Definition: Treatment.h:82
MeanExtractionRatePerMinute
static double MeanExtractionRatePerMinute
Definition: skylarks_all.cpp:165
Skylark_Clutch::StartDeveloping
void StartDeveloping()
Definition: skylarks_all.h:575
Landscape::SupplyVegPatchy
bool SupplyVegPatchy(int a_polyref)
Returns whether the polygon referenced by a_polyref or a_x, a_y has a vegetation type designated as p...
Definition: Landscape.h:1004
skTTerritory::skTTerritory
skTTerritory(int x, int y, int TheSize, int TheQuality, int a_x_div10, int a_y_div10, int a_range_div10)
Definition: skylarks_all.cpp:1241
AnimalPosition
A class defining an animals position.
Definition: PopulationManager.h:169
fp_sludge
Definition: Treatment.h:63
SimulationName
const string SimulationName
Definition: skylarks_all.cpp:48
Skylark_Population_Manager::BreedingSuccessProbeOutput
void BreedingSuccessProbeOutput(double, int, int, int, int, int, int, int) override
Definition: skylarks_all.cpp:788
fp_greenmanure
Definition: Treatment.h:62
Skylark_Female::OnSetMyClutch
void OnSetMyClutch(Skylark_Clutch *p_C)
Definition: skylarks_all.h:744
Skylark_Female::EggCounter
int EggCounter
Definition: skylarks_all.h:715
Skylark_Base::Skylark_Base
Skylark_Base(int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:2058
shallow_harrow
Definition: Treatment.h:119
SkTerritories::SupplyNoTerritories
int SupplyNoTerritories() const
Definition: skylarks_all.cpp:1362
fa_slurry
Definition: Treatment.h:72
Landscape::SupplyVegArea
double SupplyVegArea(int v)
Records all area vegetation types and transform it into a table.
Definition: Landscape.h:305
cfg_sk_triplength
CfgFloat cfg_sk_triplength("SK_TRIPLENGTH", CFG_CUSTOM, 10.5)
cattle_out_low
Definition: Treatment.h:112
harvest_bushfruit
Definition: Treatment.h:137
preseeding_cultivator_sow
Definition: Treatment.h:40
fp_pk
Definition: Treatment.h:53
TSkylarkList::TSkylarkList
TSkylarkList()
Definition: skylarks_all.h:114
Skylark_Nestling::m_EM_fail
int m_EM_fail
Definition: skylarks_all.h:592
SkTerritories::Grid
bool * Grid
Definition: skylarks_all.h:331
cfg_HQualityTall2
CfgInt cfg_HQualityTall2
Skylark_Population_Manager::FledgelingProbeOutput
void FledgelingProbeOutput(int Total, int Time) override
Definition: skylarks_all.cpp:843
MaxFeedRain
double MaxFeedRain
Definition: skylarks_all.cpp:196
cfg_insecticide_direct_mortN
CfgInt cfg_insecticide_direct_mortN
Population_Manager::SupplyStateNames
const char * SupplyStateNames(int i) const
Definition: PopulationManager.h:738
Skylark_Population_Manager::TheBreedingFemalesProbe
int TheBreedingFemalesProbe(int ProbeNo) override
Definition: skylarks_all.cpp:668
Skylark_Female::st_Immigrating
bool st_Immigrating()
Definition: skylarks_all.cpp:5517
cfg_SK_hindrance_scale
CfgFloat cfg_SK_hindrance_scale
Skylark_Clutch::Skylark_Clutch
Skylark_Clutch(Skylark_Female *Mum, SkTerritories *Terrs, Landscape *L, int NoEggs, int x, int y, int mh, Skylark_Population_Manager *SPM)
Definition: skylarks_all.cpp:2120
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
SkTerritories::SupplyNestPosition
APoint SupplyNestPosition(const int ref) const
Definition: skylarks_all.h:406
fa_pks
Definition: Treatment.h:145
Skylark_Female::ResetBreedingSuccess
void ResetBreedingSuccess()
Definition: skylarks_all.cpp:5914
Skylark_Female::EstablishTerritory
void EstablishTerritory()
Definition: skylarks_all.cpp:5718
Skylark_Population_Manager::m_TotalNestlings
int m_TotalNestlings
Definition: skylarks_all.h:437
Population_Manager
Base class for all population managers for agent based models.
Definition: PopulationManager.h:645
cfg_ConversionEffReduc
CfgFloat cfg_ConversionEffReduc
Probe_Data::m_Rect
rectangle m_Rect[16]
Definition: PopulationManager.h:433
org_fungicide
Definition: Treatment.h:86
summer_harrow
Definition: Treatment.h:49
Skylark_struct::Terrs
SkTerritories * Terrs
Definition: skylarks_all.h:215
Skylark_Male::m_InsectTable
vector< double > m_InsectTable
Definition: skylarks_all.h:808
Weather::GetWindPeriod
double GetWindPeriod(long a_date, unsigned int a_period)
Definition: Weather.cpp:697
Skylark_Population_Manager::~Skylark_Population_Manager
~Skylark_Population_Manager(void) override
Definition: skylarks_all.cpp:527
cfg_NestLeavingWeight
CfgFloat cfg_NestLeavingWeight
cfg_insecticide_direct_mortE
CfgInt cfg_insecticide_direct_mortE
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
cfg_Skylark_male_NOEL
CfgFloat cfg_Skylark_male_NOEL("SK_MALE_NOEL", CFG_CUSTOM, 0.001)
Can be used to trigger a response to pesticides for the males.
HQualityGood
int HQualityGood
Definition: skylarks_all.cpp:245
cattle_out
Definition: Treatment.h:95
harvestshoots
Definition: Treatment.h:147
cfg_MeanHatchingWeight
CfgFloat cfg_MeanHatchingWeight
terrnos
const int terrnos[6]
Definition: skylarks_all.cpp:169
April
const int April
Julian start dates of the month of April.
Definition: Landscape.h:44
Skylark_Male::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Must be reimplemented if used in descendent classes. Sets the action on a management event.
Definition: skylarks_all.cpp:3640
HQualityBareEarth
int HQualityBareEarth
Definition: skylarks_all.cpp:242
stubble_cultivator_heavy
Definition: Treatment.h:36
cfg_CfgRipleysOutputUsed
CfgBool cfg_CfgRipleysOutputUsed
skTTerritory::m_nest_valid
bool m_nest_valid
Definition: skylarks_all.h:267
cfg_HQualityOpenTallVeg
CfgInt cfg_HQualityOpenTallVeg
Skylark_Male::BroodAge
int BroodAge
Definition: skylarks_all.h:800
Landscape::SupplyHasTramlines
bool SupplyHasTramlines(int a_x, int a_y)
Returns whether the polygon referenced by a_polyref or a_x, a_y has a vegetation type with tramlines.
Definition: Landscape.h:1870
skTerritory_struct::y
int y
Definition: skylarks_all.h:300
cfg_rainhindpow
CfgInt cfg_rainhindpow("SK_RAINHINDPOW", CFG_CUSTOM, 4)
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:133
Skylark_Male
Definition: skylarks_all.h:760
Landscape::SupplyPesticideType
TTypesOfPesticide SupplyPesticideType(void)
Gets type of pesticide effect from a reference.
Definition: Landscape.h:788
APoint::m_x
int m_x
Definition: ALMaSS_Setup.h:55
cfg_HQualityVeg30cm
CfgInt cfg_HQualityVeg30cm("SK_HQVEGTHIRTYCM", CFG_CUSTOM, 11)
biocide
Definition: Treatment.h:116
Skylark_Male::Skylark_Male
Skylark_Male(int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:3599
cfg_densityconstant_a
CfgFloat cfg_densityconstant_a
rectangle::m_y2
unsigned m_y2
Definition: PopulationManager.h:119
swathing
Definition: Treatment.h:93
Skylark_Adult::Paired
bool Paired
Definition: skylarks_all.h:670
cfg_HQualityTrack
CfgInt cfg_HQualityTrack
Skylark_Male::Step
void Step(void) override
Step behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:3813
Landscape::SupplyYearNumber
int SupplyYearNumber(void)
Passes a request on to the associated Calendar class function, returns m_simulationyear
Definition: Landscape.h:2287
glyphosate
Definition: Treatment.h:114
cfg_Breed_Res_Thresh1
CfgInt cfg_Breed_Res_Thresh1("SK_BREED_RES_THRESH", CFG_CUSTOM, 600)
Skylark_Female::m_BreedingAttempts
int m_BreedingAttempts
Definition: skylarks_all.h:716
cfg_HQualityOpenTallVeg
CfgInt cfg_HQualityOpenTallVeg("SK_HQOOPENTALLVEG", CFG_CUSTOM, 16)
cfg_skylark_pesticide_globaleggshellreduction
CfgFloat cfg_skylark_pesticide_globaleggshellreduction("SK_GLOBALPESTICIDEEGGSHELLREDUC", CFG_CUSTOM, 0.0)
The proportion of eggs assumed to crack from pesticide effects as a global effect.
SkTerritories::m_qual_cache
double * m_qual_cache
Definition: skylarks_all.h:347
cfg_PatchyPremium
CfgInt cfg_PatchyPremium
Skylark_Base::On_FoodSupply
virtual double On_FoodSupply(double)
Definition: skylarks_all.h:529
SkTerritories::PreFillTerrPolyLists
void PreFillTerrPolyLists(skTTerritory *a_terr)
Definition: skylarks_all.cpp:1791
Skylark_Clutch::Clutch_Size
int Clutch_Size
Definition: skylarks_all.h:582
cfg_HQualityTall
CfgInt cfg_HQualityTall
CfgInt::value
int value() const
Definition: Configurator.h:116
Skylark_Male::SupplyNestLoc
APoint SupplyNestLoc() const
Definition: skylarks_all.h:874
cfg_FemaleMinTerritoryAcceptScore
CfgFloat cfg_FemaleMinTerritoryAcceptScore
Skylark_Population_Manager::SupplyM_Mig_Mort
int SupplyM_Mig_Mort() const
Definition: skylarks_all.h:454
Skylark_PreFledgeling::EndStep
void EndStep(void) override
EndStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:3337
Probe_Data::m_NoVegTypes
unsigned m_NoVegTypes
Definition: PopulationManager.h:435
Skylark_PreFledgeling::GetFledgelingEM
double GetFledgelingEM(int Age) const
Definition: skylarks_all.cpp:3446
AnimalPosition::m_EleType
TTypesOfLandscapeElement m_EleType
Definition: PopulationManager.h:175
Population_Manager_Base::TheProbe
Probe_Data * TheProbe[100]
Holds a list of pointers to standard output probes.
Definition: PopulationManager.h:588
Skylark_Female::ReInit
void ReInit(int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) override
Definition: skylarks_all.cpp:5027
cfg_EM_Nestling_b
CfgFloat cfg_EM_Nestling_b("SK_EM_NESTLING_B", CFG_CUSTOM, 1.353)
Skylark_Male::st_Flocking
int st_Flocking()
Definition: skylarks_all.cpp:3947
Skylark_Population_Manager::m_TotalPrefledgelings
int m_TotalPrefledgelings
Definition: skylarks_all.h:438
cfg_tramline_foraging
CfgFloat cfg_tramline_foraging
Skylark_Female::m_EggNumber
int m_EggNumber
Definition: skylarks_all.h:718
fa_manure
Definition: Treatment.h:75
CompareDist
bool CompareDist(const APoint i, const APoint j)
Definition: skylarks_all.cpp:142
SkTerritories::m_qual_cache_filled
bool m_qual_cache_filled
Definition: skylarks_all.h:348
Skylark_Female::st_Arriving
bool st_Arriving()
Definition: skylarks_all.cpp:5500
SkTerritories::EvaluateHabitatN
double EvaluateHabitatN(skTTerritory *a_terr)
Definition: skylarks_all.cpp:1895
spring_sow
Definition: Treatment.h:47
AnimalPosition::m_y
unsigned m_y
Definition: PopulationManager.h:174
Skylark_Population_Manager::OpenTheBreedingSuccessProbe
bool OpenTheBreedingSuccessProbe() override
Definition: skylarks_all.cpp:830
EM_warmblood1
const double EM_warmblood1
Definition: skylarks_all.cpp:181
Skylark_Population_Manager::TheSkylarkTerrsSupply_x
int TheSkylarkTerrsSupply_x(int) const
Definition: skylarks_all.cpp:880
cfg_MeanExtractionRatePerMinute
CfgFloat cfg_MeanExtractionRatePerMinute
ttop_eggshellthinning
Definition: LandscapeFarmingEnums.h:1067
cut_weeds
Definition: Treatment.h:106
Skylark_Male::OnEggHatch
void OnEggHatch()
Definition: skylarks_all.cpp:4630
trial_toxiccontrol
Definition: Treatment.h:109
cfg_densityconstant_b
CfgFloat cfg_densityconstant_b
Skylark_Population_Manager::TheSkylarkTerrsSupply_y
int TheSkylarkTerrsSupply_y(int) const
Definition: skylarks_all.cpp:882
HQualityHedgeScrub
int HQualityHedgeScrub
Definition: skylarks_all.cpp:233
cfg_Skylark_nestling_Biodegredation
CfgFloat cfg_Skylark_nestling_Biodegredation("SK_NESTLING_BIODEG", CFG_CUSTOM, 0.0)
The proportion of pesticide accumulated from one day to the next.
Skylark_Female::Supply_NestTime
int Supply_NestTime() const
Definition: skylarks_all.h:736
tov_Undefined
Definition: LandscapeFarmingEnums.h:610
summer_plough
Definition: Treatment.h:48
EM_coldblood2
const double EM_coldblood2
Definition: skylarks_all.cpp:180
Probe_Data::m_NoAreas
unsigned m_NoAreas
Definition: PopulationManager.h:432
cfg_insecticide_direct_mortP
CfgInt cfg_insecticide_direct_mortP("SK_INSECTICDEDIRECTMORTP", CFG_CUSTOM, 0)
Population_Manager::OpenTheRipleysOutputProbe
bool OpenTheRipleysOutputProbe()
Definition: PopulationManager.cpp:897
cfg_Skylark_female_Biodegredation
CfgFloat cfg_Skylark_female_Biodegredation("SK_FEMALE_BIODEG", CFG_CUSTOM, 0.0)
The proportion of pesticide remaining from one day to the next for females.
Skylark_Base::m_Born_x
int m_Born_x
Definition: skylarks_all.h:520
SkTerritories::PreEvaluateHabitatStripX
int PreEvaluateHabitatStripX(int a_x, int a_y, int a_range_x) const
Definition: skylarks_all.cpp:1619
SkTerritories::ClaimGrid
void ClaimGrid(int x, int y, int range) const
Definition: skylarks_all.cpp:1971
Landscape::EventtypeToString
std::string EventtypeToString(int a_event)
Returns the text representation of a treatment type.
Definition: Landscape.cpp:6024
PreFledgeMortProb
static int PreFledgeMortProb
Definition: skylarks_all.cpp:160
TAnimal::CopyMyself
virtual void CopyMyself()
Used to copy the object details to another in descendent classes.
Definition: PopulationManager.h:273
CE_nest
const double CE_nest[15]
Definition: skylarks_all.cpp:149
Skylark_Male::Supply_Territory
skTerritory_struct Supply_Territory() const
Definition: skylarks_all.cpp:4373
Skylark_Female::GetFood
double GetFood(int time)
Definition: skylarks_all.cpp:6441
cfg_Skylark_male_Biodegredation
CfgFloat cfg_Skylark_male_Biodegredation("SK_MALE_BIODEG", CFG_CUSTOM, 0.0)
The proportion of pesticide remaining from one day to the next for males.
cfg_FemaleMinTerritoryAcceptScore
CfgFloat cfg_FemaleMinTerritoryAcceptScore("SK_MINFEMACCEPTSCORE", CFG_CUSTOM, 300000)
Population_Manager::StateNames
const char * StateNames[100]
Definition: PopulationManager.h:801
Skylark_Adult::m_aTerrlist
vector< APoint > * m_aTerrlist
Definition: skylarks_all.h:661
fp_pks
Definition: Treatment.h:146
Skylark_Adult::CopyMyself
virtual void CopyMyself(int a_sktype)
Definition: skylarks_all.cpp:6601
SkTerritories::PreProcessLandscape2
void PreProcessLandscape2(Landscape *L)
Definition: skylarks_all.cpp:1660
Skylark_Male::m_Brood
Skylark_Nestling * m_Brood[26]
Definition: skylarks_all.h:792
fp_ns
Definition: Treatment.h:134
Probe_Data::m_RefFarms
unsigned m_RefFarms[25]
Definition: PopulationManager.h:439
Skylark_Male::st_Dying
void st_Dying()
Definition: skylarks_all.cpp:3922
cfg_heightconstant_a
CfgFloat cfg_heightconstant_a
Skylark_Population_Manager::TheSkylarkTerrsSupply_size
int TheSkylarkTerrsSupply_size(int) const
Definition: skylarks_all.cpp:884
Landscape::SupplyInsects
double SupplyInsects(int a_polyref)
Returns the insect biomass on a polygon using the polygon reference number a_polyref or based on the ...
Definition: Landscape.h:1712
Landscape::SupplyRain
double SupplyRain(void)
Passes a request on to the associated Weather class function, the amount of rain for the current day.
Definition: Landscape.h:1971
Skylark_Female::m_Counter1
int m_Counter1
Definition: skylarks_all.h:711
Skylark_Male::st_TempLeavingArea
int st_TempLeavingArea()
Definition: skylarks_all.cpp:4383
skSpiralResult::found
bool found
Definition: skylarks_all.h:202
Skylark_Female::OnBroodDeath
void OnBroodDeath()
Definition: skylarks_all.cpp:5768
cfg_SkScrapesPremiumII
CfgFloat cfg_SkScrapesPremiumII("SK_SKSCRAPESPREMIUMNEST", CFG_CUSTOM, 0.24)
Skylark_Adult::GoodWeather
int GoodWeather
Definition: skylarks_all.h:656
bed_forming
Definition: Treatment.h:118
SkTerritories
Definition: skylarks_all.h:326
May
const int May
Julian start dates of the month of May.
Definition: Landscape.h:46
Skylark_Male::m_HabitatTable_PNum
vector< int > m_HabitatTable_PNum
Definition: skylarks_all.h:806
Skylark_Clutch::BeginStep
void BeginStep(void) override
BeingStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:2358
skTTerritory::m_hr_polys
vector< int > m_hr_polys
Definition: skylarks_all.h:261
January
const int January
Julian start dates of the month of January.
Definition: Landscape.h:38
Skylark_Base::ReInit
virtual void ReInit(int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:2074
product_treat
Definition: Treatment.h:113
cfg_HQualityTall
CfgInt cfg_HQualityTall("SK_HQTALL", CFG_CUSTOM, -2)
g_weather
class Weather * g_weather
Definition: Weather.cpp:49
Skylark_Male::OnNestLocation
void OnNestLocation(int x, int y)
Definition: skylarks_all.cpp:4717
Skylark_Clutch::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Must be reimplemented if used in descendent classes. Sets the action on a management event.
Definition: skylarks_all.cpp:2141
PreFledgeling_struct::sex
bool sex
Definition: skylarks_all.h:242
Population_Manager::OpenTheReallyBigProbe
bool OpenTheReallyBigProbe()
Definition: PopulationManager.cpp:1005
cfg_insecticide_direct_mortE
CfgInt cfg_insecticide_direct_mortE("SK_INSECTICDEDIRECTMORTE", CFG_CUSTOM, 0)
Landscape::SupplyVegHeight
double SupplyVegHeight(int a_polyref)
Returns the height of the vegetation using the polygon reference number a_polyref or based on the x,...
Definition: Landscape.h:1527
Skylark_Female::OnBreedSuccess
void OnBreedSuccess()
Definition: skylarks_all.h:754
Skylark_Male::OnPreFledgelingDeath
void OnPreFledgelingDeath(const Skylark_PreFledgeling *P)
Definition: skylarks_all.cpp:4281
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Population_Manager::GetLiveArraySize
unsigned GetLiveArraySize(int a_listindex) override
Gets the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:657
Skylark_Population_Manager::Catastrophe
void Catastrophe() override
Definition: skylarks_all.cpp:1156
Skylark_Base::m_Size
double m_Size
Definition: skylarks_all.h:519
cfg_Cooling_Rate_Eggs
CfgFloat cfg_Cooling_Rate_Eggs
Maximum immigration mortality for females.
AdultSkylark_struct
Definition: skylarks_all.h:248
IsTramline
double IsTramline
Definition: skylarks_all.cpp:221
TAnimal::ReinitialiseObject
virtual void ReinitialiseObject(int a_x, int a_y, Landscape *a_l_ptr)
Definition: PopulationManager.h:282
Skylark_Population_Manager::TheFledgelingProbe
int TheFledgelingProbe() override
Definition: skylarks_all.cpp:644
HomeRangeDiameterDiv20
const int HomeRangeDiameterDiv20
Definition: skylarks_all.cpp:186
Skylark_Adult::MyExtractEff
double MyExtractEff
Definition: skylarks_all.h:658
NotTramline
double NotTramline
Definition: skylarks_all.cpp:222
TALMaSSObject::OnArrayBoundsError
static void OnArrayBoundsError()
Used for debugging only, tests basic object properties.
Definition: PopulationManager.cpp:1614
ttop_ReproductiveEffects
Definition: LandscapeFarmingEnums.h:1061
cfg_NestLeavingChance
CfgInt cfg_NestLeavingChance
Weather::GetTempPeriod
double GetTempPeriod(long a_date, unsigned int a_period)
Definition: Weather.cpp:707
skTTerritory::Size
int Size
Definition: skylarks_all.h:274
Skylark_Clutch::Step
void Step(void) override
Step behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:2362
autumn_sow
Definition: Treatment.h:41
Skylark_Female::st_Floating
int st_Floating()
Definition: skylarks_all.cpp:5614
Skylark_Population_Manager::m_StriglingMort
int m_StriglingMort[4]
Definition: skylarks_all.h:435
rectangle::m_x1
unsigned m_x1
Definition: PopulationManager.h:116
skTTerritory
Definition: skylarks_all.h:257
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
SkTerritories::PreEvaluateQualGrid
void PreEvaluateQualGrid(SkQualGrid *a_grid, int a_x, int a_y, int a_width, int a_height)
Definition: skylarks_all.cpp:1539
Skylark_Male::Supply_TerritoryQual
double Supply_TerritoryQual() const
Definition: skylarks_all.h:837
skTTerritory::m_VirtualDiameter
double m_VirtualDiameter
Definition: skylarks_all.h:291
Skylark_Clutch::m_baddays
int m_baddays
Definition: skylarks_all.h:560
Skylark_Population_Manager::SKPOM2
FILE * SKPOM2
Definition: skylarks_all.h:445
Skylark_Nestling::EndStep
void EndStep(void) override
EndStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:2887
Skylark_Base::m_OurPopulationManager
Skylark_Population_Manager * m_OurPopulationManager
Definition: skylarks_all.h:526
Skylark_Female::Resources
double Resources
Definition: skylarks_all.h:714
autumn_harrow
Definition: Treatment.h:37
SkQualGrid::m_sizes
vector< int > m_sizes
Definition: skylarks_all.h:311
Skylark_Male::st_CaringForYoung
int st_CaringForYoung()
Definition: skylarks_all.cpp:4801
HQualityTall
int HQualityTall
Definition: skylarks_all.cpp:229
cfg_ReturnProbability
CfgFloat cfg_ReturnProbability("SK_RETURNPROBABILITY", CFG_CUSTOM, 10000)
Used to change the timing of start of arrival in the landscape.
SkTerritories::Supply_Owner
Skylark_Male * Supply_Owner(int ref) const
Definition: skylarks_all.cpp:1382
Skylark_struct::y
int y
Definition: skylarks_all.h:210
Farm
The base class for all farm types.
Definition: Farm.h:755
Skylark_Population_Manager::WriteSKPOM2
void WriteSKPOM2(const int n, const int n2) const
Definition: skylarks_all.h:452
Skylark_Female::st_StartingNewBrood
int st_StartingNewBrood()
Definition: skylarks_all.cpp:6202
fa_calcium
Definition: Treatment.h:79
Skylark_Male::OnMateLeaving
void OnMateLeaving()
Definition: skylarks_all.cpp:4163
Skylark_Female::st_EggHatching
int st_EggHatching()
Definition: skylarks_all.cpp:6273
Probe_Data::FileOutput
void FileOutput(int No, int time, int ProbeNo) const
Definition: PopulationManager.cpp:1626
cfg_adultreturnmort
CfgInt cfg_adultreturnmort("SK_ADULTRETURNMORT", CFG_CUSTOM, 35)
Immigration mortality for juveniles.
September
const int September
Julian start dates of the month of September.
Definition: Landscape.h:54
Skylark_Male::m_MyMinTerritoryQual
int m_MyMinTerritoryQual
Definition: skylarks_all.h:794
fa_ammoniumsulphate
Definition: Treatment.h:74
SkTerritories::m_qual_grid
SkQualGrid ** m_qual_grid
Definition: skylarks_all.h:339
Skylark_Population_Manager::CreateObjects
void CreateObjects(int ob_type, TAnimal *pTAo, void *null, Skylark_struct *data, int number)
Definition: skylarks_all.cpp:539
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
cfg_fecundity_reduc
CfgInt cfg_fecundity_reduc
Skylark_Female::OnClutchDeath
void OnClutchDeath()
Definition: skylarks_all.cpp:5786
cfg_Skylark_female_Biodegredation
CfgFloat cfg_Skylark_female_Biodegredation
The proportion of pesticide remaining from one day to the next for females.
Skylark_Female::OnBreedingSuccess
void OnBreedingSuccess()
Definition: skylarks_all.cpp:5465
Population_Manager_Base::m_SimulationName
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
cfg_skylark_pesticide_eggshellreduction_perclutch
CfgBool cfg_skylark_pesticide_eggshellreduction_perclutch("SK_PESTICIDEEGGSHELLREDUCPERCLUTCH", CFG_CUSTOM, false)
If true egg shell reduction works at clutch level, if false it is considered per egg.
tole_Field
Definition: LandscapeFarmingEnums.h:65
skTTerritory::m_sizes
vector< int > m_sizes
Definition: skylarks_all.h:260
Skylark_Male::EndStep
void EndStep(void) override
EndStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:3910
Population_Manager_Base::SupplySimW
int SupplySimW() const
Returns landscape width in m.
Definition: PopulationManager.h:567
March
const int March
Julian start dates of the month of March.
Definition: Landscape.h:42
skTTerritory::m_x_div10
int m_x_div10
Definition: skylarks_all.h:264
Skylark_Male::HaveTerritory
bool HaveTerritory
Definition: skylarks_all.h:813
autumn_sow_with_ferti
Definition: Treatment.h:136
StriglingMort
FILE * StriglingMort
Definition: skylarks_all.cpp:46
Skylark_Male::m_BroodSize
int m_BroodSize
Definition: skylarks_all.h:791
trial_insecticidetreat
Definition: Treatment.h:108
Skylark_Population_Manager::TheRipleysOutputProbe
virtual void TheRipleysOutputProbe(FILE *a_prb)
Definition: skylarks_all.cpp:762
Population_Manager::SupplyListIndexSize
virtual unsigned SupplyListIndexSize()
Definition: PopulationManager.h:725
Population_Manager::m_NoProbes
int m_NoProbes
Definition: PopulationManager.h:787
fa_p
Definition: Treatment.h:69
mow
Definition: Treatment.h:105
cfg_strigling_nestling
CfgInt cfg_strigling_nestling("SK_STRIGLING_N", CFG_CUSTOM, 72)
SkTerritories::m_poly_size
int * m_poly_size
Definition: skylarks_all.h:344
cfg_PreFledgeMortProb
CfgInt cfg_PreFledgeMortProb("SK_PREFLEDGE_MORT_PROB", CFG_CUSTOM, 50)
skTTerritory::GetVirtualDiameter
double GetVirtualDiameter() const
Definition: skylarks_all.h:271
cfg_Skylark_nestling_Biodegredation
CfgFloat cfg_Skylark_nestling_Biodegredation
The proportion of pesticide accumulated from one day to the next.
cfg_SkTramlinesPremium
CfgInt cfg_SkTramlinesPremium
Nestling_struct::Dad
Skylark_Male * Dad
Definition: skylarks_all.h:233
cfg_insecticide_direct_mortM
CfgInt cfg_insecticide_direct_mortM
Skylark_Population_Manager::IsBadWeather
bool IsBadWeather() const
Definition: skylarks_all.h:494
Probe_Data::m_NoFarms
unsigned m_NoFarms
Definition: PopulationManager.h:436
Skylark_Male::OnNestlingDeath
void OnNestlingDeath(const Skylark_Nestling *N)
Definition: skylarks_all.cpp:4665
Skylark_Female::m_toowet
int m_toowet
Definition: skylarks_all.h:720
Skylark_PreFledgeling::Skylark_PreFledgeling
Skylark_PreFledgeling(int x, int y, Landscape *L, SkTerritories *Terrs, Skylark_Male *Daddy, bool sex, double size, int age, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:3113
cfg_ClutchMortProb
CfgInt cfg_ClutchMortProb
Skylark_Population_Manager::incNoPestEffects
void incNoPestEffects()
Definition: skylarks_all.h:482
cfg_SkTramlinesPremium
CfgInt cfg_SkTramlinesPremium("SK_TRAMLINEPREMIUM", CFG_CUSTOM, 6)
cfg_HQualityHedgeScrub
CfgInt cfg_HQualityHedgeScrub
Skylark_Nestling::OnDeserted
void OnDeserted()
Definition: skylarks_all.cpp:3048
fa_rsm
Definition: Treatment.h:78
Skylark_Female::st_Flocking
int st_Flocking()
Definition: skylarks_all.cpp:5473
Skylark_Female
Definition: skylarks_all.h:676
Skylark_Male::SupplyBroodWeight
int SupplyBroodWeight(const int n) const
Definition: skylarks_all.h:839
cfg_MinDaysToHatch
CfgFloat cfg_MinDaysToHatch("SK_MINDAYSTOHATCH", CFG_CUSTOM, 10.2)
The time taken to egg hatch under optimal conditions.
Skylark_PreFledgeling
Definition: skylarks_all.h:624
CFG_CUSTOM
Definition: Configurator.h:70
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
NestLeavingWeight
static double NestLeavingWeight
Definition: skylarks_all.cpp:155
NestPlacementMinQual
double NestPlacementMinQual
The minimum quality for nest placement.
Definition: skylarks_all.cpp:227
Skylark_struct
Definition: skylarks_all.h:207
fa_npks
Definition: Treatment.h:66
cfg_hindconstantH_b
CfgFloat cfg_hindconstantH_b
water
Definition: Treatment.h:92
Skylark_Population_Manager::TheAOROutputProbe
void TheAOROutputProbe() override
Definition: skylarks_all.cpp:759
Skylark_Male::~Skylark_Male
~Skylark_Male() override
Definition: skylarks_all.cpp:3636
Skylark_Population_Manager::TheBreedingSuccessProbe
int TheBreedingSuccessProbe(int &BreedingFemales, int &YoungOfTheYear, int &TotalPop, int &TotalFemales, int &TotalMales, int &BreedingAttempts) override
Definition: skylarks_all.cpp:683
stubble_harrowing
Definition: Treatment.h:102
SkTerritories::PreEvaluateHabitatStripY
int PreEvaluateHabitatStripY(int a_x, int a_y, int a_range_x) const
Definition: skylarks_all.cpp:1640
cfg_hindconstantD_b
CfgFloat cfg_hindconstantD_b("SK_HINDCONSTD_B", CFG_CUSTOM,-0.022)
cfg_temphindpow
CfgInt cfg_temphindpow
VeryHighDensityVeg
const double VeryHighDensityVeg
Definition: skylarks_all.cpp:195
PreFledgeling_struct::size
double size
Definition: skylarks_all.h:240
Skylark_Female::MyMate
Skylark_Male * MyMate
Definition: skylarks_all.h:724
Skylark_PreFledgeling::st_Dying
void st_Dying() override
Definition: skylarks_all.cpp:3391
PreFledgeling_struct
Definition: skylarks_all.h:238
SkTerritories::Supply_y
int Supply_y(int ref) const
Definition: skylarks_all.cpp:1390
cfg_Skylark_nestling_NOEL
CfgFloat cfg_Skylark_nestling_NOEL("SK_NESTLING_NOEL", CFG_CUSTOM, 0.001)
Can be used to trigger a response to pesticides for the nestlings.
TTypesOfSkState
enum { toss_Initiation=0, toss_Developing, toss_Hatching, toss_CDying, toss_NDeveloping, toss_NMaturing, toss_NDying, toss_PDeveloping, toss_PMaturing, toss_PDying, toss_MFlocking, toss_MFloating, toss_MArriving, toss_MImmigrating, toss_MEmigrating, toss_MTempLeavingArea, toss_MFindingTerritory, toss_AttractingAMate, toss_FollowingMate, toss_ScaringOffChicks, toss_MCaringForYoung, toss_MDying, toss_MRehousing, toss_FFlocking, toss_FFloating, toss_FArriving, toss_FImmigrating, toss_FEmigrating, toss_FTempLeavingArea, toss_FFindingTerritory, toss_BuildingUpResources, toss_MakingNest, toss_PreparingForBreeding, toss_Laying, toss_StartingNewBrood, toss_EggHatching, toss_Incubating, toss_StoppingBreeding, toss_FCaringForYoung, toss_FDying, toss_GivingUpTerritory, toss_Destroy, } TTypesOfSkState
Definition: skylarks_all.h:92
cfg_SkylarkFirstBreedingDate
CfgInt cfg_SkylarkFirstBreedingDate("SK_FIRSTBREEDINGDATE", CFG_CUSTOM, April)
The date at which breeding start can happen.
Skylark_struct::mh
int mh
Definition: skylarks_all.h:213
PreFledgeling_struct::age
int age
Definition: skylarks_all.h:243
Skylark_Base::InSquare
bool InSquare(rectangle R) const
Definition: skylarks_all.cpp:2107
cfg_HQualityNeutral
CfgInt cfg_HQualityNeutral("SK_HQNEUTRAL", CFG_CUSTOM, 0)
fp_liquidNH3
Definition: Treatment.h:57
cfg_SkylarkFirstBreedingDate
CfgInt cfg_SkylarkFirstBreedingDate
The date at which breeding start can happen.
molluscicide
Definition: Treatment.h:87
EM_coldblood1
const double EM_coldblood1
Definition: skylarks_all.cpp:179
cfg_insecticide_direct_mortP
CfgInt cfg_insecticide_direct_mortP
cfg_HQualityBareEarth
CfgInt cfg_HQualityBareEarth
Skylark_Male::OnPreFledgelingMature
void OnPreFledgelingMature(const Skylark_PreFledgeling *P)
Definition: skylarks_all.cpp:4319
cfg_EggTemp
CfgFloat cfg_EggTemp("SK_EGGTEMP", CFG_CUSTOM, 36.1)
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:131
Population_Manager::PushIndividual
void PushIndividual(const unsigned a_listindex, TAnimal *a_individual_ptr)
Definition: PopulationManager.cpp:1682
cfg_HQualityWater
CfgInt cfg_HQualityWater
Skylark_Female::OnMateDying
void OnMateDying()
Definition: skylarks_all.cpp:5830
hay_bailing
Definition: Treatment.h:101
SkTerritories::Territories
skTTerritory * Territories[400000]
Definition: skylarks_all.h:328
Skylark_PreFledgeling::st_Developing
int st_Developing() override
Definition: skylarks_all.cpp:3402
KcalPerGInsect
const double KcalPerGInsect
Definition: skylarks_all.cpp:175
Breed_Temp_Thresh
const double Breed_Temp_Thresh
Definition: skylarks_all.cpp:211
skClutch_struct::Mum
Skylark_Female * Mum
Definition: skylarks_all.h:226
Skylark_Female::OnEggsHatch
void OnEggsHatch()
Definition: skylarks_all.cpp:5808
cfg_MeanHatchingWeight
CfgFloat cfg_MeanHatchingWeight("SK_MEAN_HATCHING_WEIGHT", CFG_CUSTOM, 3.23)
cfg_Skylark_male_NOEL
CfgFloat cfg_Skylark_male_NOEL
Can be used to trigger a response to pesticides for the males.
SkTerritories::IsExtGridPositionValid
bool IsExtGridPositionValid(const int &x, const int &y, int range) const
Definition: skylarks_all.cpp:1942
Skylark_Adult::~Skylark_Adult
~Skylark_Adult() override
Definition: skylarks_all.cpp:3517
Weather::GetRain
double GetRain(long a_date)
Definition: Weather.h:506
fa_manganesesulphate
Definition: Treatment.h:73
skTerritory_struct::nqual
double nqual
Definition: skylarks_all.h:303
Skylark_Male::SensibleCopy
void SensibleCopy()
Definition: skylarks_all.cpp:6626
Population_Manager::ReallyBigOutputPrb
ofstream * ReallyBigOutputPrb
Definition: PopulationManager.h:873
Skylark_Male::BeginStep
void BeginStep(void) override
BeingStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:3782
Skylark_Female::EndStep
void EndStep(void) override
EndStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:5446
cfg_densityconstant_a
CfgFloat cfg_densityconstant_a("SK_DENSITYCONST_A", CFG_CUSTOM, 0)
cfg_heightconstant_b
CfgFloat cfg_heightconstant_b("SK_HEIGHTCONST_B", CFG_CUSTOM,-0.22)
Landscape::SupplyLargestPolyNumUsed
int SupplyLargestPolyNumUsed()
Returns m_LargestPolyNumUsed.
Definition: Landscape.h:578
Skylark_Clutch::Mother
Skylark_Female * Mother
Definition: skylarks_all.h:583
HQualityTall2
int HQualityTall2
Definition: skylarks_all.cpp:230
Skylark_Adult::ReInit
virtual void ReInit(int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh)
Definition: skylarks_all.cpp:3502
fp_k
Definition: Treatment.h:55
cfg_Skylark_male_Biodegredation
CfgFloat cfg_Skylark_male_Biodegredation
The proportion of pesticide remaining from one day to the next for males.
cfg_PmEventsize
CfgInt cfg_PmEventsize
HQualityWater
int HQualityWater
Definition: skylarks_all.cpp:236
Skylark_Nestling::On_FoodSupply
double On_FoodSupply(double food) override
Definition: skylarks_all.cpp:3059
Probe_Data::m_RefEle
TTypesOfLandscapeElement m_RefEle[25]
Definition: PopulationManager.h:438
cfg_EM_Nestling_a
CfgFloat cfg_EM_Nestling_a
Skylark_Population_Manager::ProbePOM
float ProbePOM(int ListIndex, const Probe_Data *p_TheProbe)
Modified probe for POM Output.
Definition: skylarks_all.cpp:1089
cfg_HQualityTallVeg
CfgInt cfg_HQualityTallVeg("SK_HQTALLVEG", CFG_CUSTOM, -10)
cfg_HQualityNeutral
CfgInt cfg_HQualityNeutral
Skylark_Clutch::OnMumGone
void OnMumGone()
Definition: skylarks_all.cpp:2342
Skylark_Female::CheckForFields
double CheckForFields() const
Definition: skylarks_all.cpp:6577
cfg_MeanExtractionRatePerMinute
CfgFloat cfg_MeanExtractionRatePerMinute("SK_EXTRACTION_RATE", CFG_CUSTOM, 0.0020948)
Skylark_Adult::MyTerritory
skTerritory_struct MyTerritory
Definition: skylarks_all.h:660
Skylark_Female::FeedYoung
void FeedYoung()
Definition: skylarks_all.cpp:6344
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
skTTerritory::m_nest_pos_validx
int m_nest_pos_validx
Definition: skylarks_all.h:268
SkTerritories::m_hash_size
int m_hash_size
Definition: skylarks_all.h:342
cfg_skylark_pesticide_eggshellreduction_perclutch
CfgBool cfg_skylark_pesticide_eggshellreduction_perclutch
If true egg shell reduction works at clutch level, if false it is considered per egg.
cfg_maxfeedrain
CfgFloat cfg_maxfeedrain("SK_MAXFEEDRAIN", CFG_CUSTOM, 10.0)
cfg_SkStartNos
CfgInt cfg_SkStartNos
The number of skylarks that start in the simulation.
Skylark_Population_Manager
Definition: skylarks_all.h:423
SkTerritories::PrePolyNQual
double PrePolyNQual(int a_poly, int *a_good_polys)
Definition: skylarks_toletov.cpp:284
Skylark_PreFledgeling::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Must be reimplemented if used in descendent classes. Sets the action on a management event.
Definition: skylarks_all.cpp:3137
skTTerritory::Owner
Skylark_Male * Owner
Definition: skylarks_all.h:279
cfg_strigling_preflg
CfgInt cfg_strigling_preflg
Skylark_Population_Manager::SupplyNoTerritories
int SupplyNoTerritories() const
Definition: skylarks_all.cpp:878
Skylark_Male::No_HabitatTable_Refs
int No_HabitatTable_Refs
Definition: skylarks_all.h:793
autumn_plough
Definition: Treatment.h:34
Skylark_Male::MyMate
Skylark_Female * MyMate
Definition: skylarks_all.h:798
Skylark_Female::st_Laying
TTypesOfSkState st_Laying()
Definition: skylarks_all.cpp:6060
SkTerritories::m_for_iter_y
int m_for_iter_y[1000]
Definition: skylarks_all.h:351
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
cfg_fecundity_reduc
CfgInt cfg_fecundity_reduc("SK_FECUNDITY_REDUC", CFG_CUSTOM, 0)
Skylark_Female::m_MinFemaleAcceptScore
double m_MinFemaleAcceptScore
Definition: skylarks_all.h:721
SkTerritories::SimH
int SimH
Definition: skylarks_all.h:330
HomeRangeDiameter
const int HomeRangeDiameter
Definition: skylarks_all.cpp:185
skTerritory_struct::x
int x
Definition: skylarks_all.h:299
cfg_Breed_Res_Thresh1
CfgInt cfg_Breed_Res_Thresh1
cfg_heightconstant_c
CfgInt cfg_heightconstant_c("SK_HEIGHTCONST_C", CFG_CUSTOM, 38)
Skylark_Female::MyClutch
Skylark_Clutch * MyClutch
Definition: skylarks_all.h:710
cfg_rainhindpow
CfgInt cfg_rainhindpow
Nestling_struct
Definition: skylarks_all.h:231
Skylark_Male::ConstructAHabitatTable
void ConstructAHabitatTable()
Definition: skylarks_all.cpp:4744
Skylark_Female::st_CaringForYoung
int st_CaringForYoung()
Definition: skylarks_all.cpp:6316
Skylark_Male::EstablishingATerritory
int EstablishingATerritory()
Definition: skylarks_all.cpp:4498
Landscape::SupplyDaylength
int SupplyDaylength(void)
Passes a request on to the associated Weather class function, the day length for the current day.
Definition: Landscape.h:2201
Landscape::SupplyPolyRef
int SupplyPolyRef(int a_x, int a_y)
Get the in map polygon reference number from the x, y location.
Definition: Landscape.h:2157
cfg_insecticide_direct_mortF
CfgInt cfg_insecticide_direct_mortF
fp_slurry
Definition: Treatment.h:58
cfg_HQualityVeg30cm
CfgInt cfg_HQualityVeg30cm
fiber_covering
Definition: Treatment.h:128
Skylark_Male::OnAddPreFledgeling
void OnAddPreFledgeling(Skylark_PreFledgeling *P, const Skylark_Nestling *N)
Definition: skylarks_all.cpp:4232
Skylark_struct::bx
int bx
Definition: skylarks_all.h:211
Skylark_Nestling::st_Dying
virtual void st_Dying()
Definition: skylarks_all.cpp:3097
Skylark_Population_Manager::m_NoChickDeaths
int m_NoChickDeaths
Definition: skylarks_all.h:440
WARN_BUG
Definition: MapErrorMsg.h:34
ppp_1
Definition: LandscapeFarmingEnums.h:1079
Skylark_Population_Manager::TheSkylarkTerrsSupply_quality
int TheSkylarkTerrsSupply_quality(int) const
Definition: skylarks_all.cpp:886
SkTerritories::SupplyNoMaleOccupied
int SupplyNoMaleOccupied() const
Definition: skylarks_all.cpp:1366
APoint::m_y
int m_y
Definition: ALMaSS_Setup.h:56
cfg_Skylark_prefledegling_Biodegredation
CfgFloat cfg_Skylark_prefledegling_Biodegredation
The proportion of pesticide remaining from one day to the next for prefledglings.
Landscape::SupplyGlobalDate
long SupplyGlobalDate(void)
Passes a request on to the associated Calendar class function, returns the simulation global date for...
Definition: Landscape.h:2292
Skylark_Nestling::BeginStep
void BeginStep(void) override
BeingStep behaviour - must be implemented in descendent classes.
Definition: skylarks_all.cpp:2852
summer_sow
Definition: Treatment.h:50
skTTerritory::m_range_div10
int m_range_div10
Definition: skylarks_all.h:266
Skylark_PreFledgeling::st_Maturing
void st_Maturing() override
Definition: skylarks_all.cpp:3457
cfg_FoodTripsPerDay
CfgInt cfg_FoodTripsPerDay("SK_FOOD_TRIPS_PER_DAY", CFG_CUSTOM, 30)
spring_sow_with_ferti
Definition: Treatment.h:115
cfg_NestlingMortProb
CfgInt cfg_NestlingMortProb("SK_NEST_MORT_PROB", CFG_CUSTOM, 23)
cfg_HQualityHedgeScrub
CfgInt cfg_HQualityHedgeScrub("SK_HQHEDGESCRUB", CFG_CUSTOM, 0)
Skylark_Male::OnNestPredatation
void OnNestPredatation()
Definition: skylarks_all.cpp:4701
Skylark_Female::st_Dying
void st_Dying()
Definition: skylarks_all.cpp:5735
October
const int October
Julian start dates of the month of October.
Definition: Landscape.h:56
ExtraBroodHeat
const double ExtraBroodHeat
Definition: skylarks_all.cpp:218
sleep_all_day
Definition: Treatment.h:33
Skylark_Population_Manager::M_Mig_Mort
int M_Mig_Mort
Definition: skylarks_all.h:431
Skylark_Female::m_BreedingSuccess
int m_BreedingSuccess
Definition: skylarks_all.h:717
strigling_sow
Definition: Treatment.h:107
AnimalPosition::m_VegType
TTypesOfVegetation m_VegType
Definition: PopulationManager.h:176
Skylark_Female::OnMateHomeless
void OnMateHomeless()
Definition: skylarks_all.cpp:5856
Skylark_Male::st_Arriving
bool st_Arriving() const
Definition: skylarks_all.cpp:3976
Population_Manager::IncLiveArraySize
void IncLiveArraySize(int a_listindex)
Increments the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:665
Skylark_Adult::BSuccess
bool BSuccess
Definition: skylarks_all.h:657