File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DK_OCloverGrassGrazed1 Class Reference

DK_OCloverGrassGrazed1 class
. More...

#include <DK_OCloverGrassGrazed1.h>

Inheritance diagram for DK_OCloverGrassGrazed1:
Crop

Public Member Functions

virtual bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 The one and only method for a crop management plan. All farm actions go through here. More...
 
 DK_OCloverGrassGrazed1 (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
void SetUpFarmCategoryInformation ()
 
- Public Member Functions inherited from Crop
virtual ~Crop ()
 
 Crop (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
int GetFirstDate (void)
 
void ChooseNextCrop (int a_no_dates)
 Chooses the next crop to grow in a field. More...
 
int GetCropClassification ()
 
void SetCropClassification (int a_classification)
 
void GetCropType (TTypesOfCrops a_toc)
 
TTypesOfCrops GetCropType ()
 
FarmManagementCategory LookUpManagementCategory (int a_todo)
 
bool GetForceSpringOK ()
 

Additional Inherited Members

- Public Attributes inherited from Crop
TTypesOfVegetation m_tov
 
- Protected Member Functions inherited from Crop
void SimpleEvent (long a_date, int a_todo, bool a_lock)
 Adds an event to this crop management. More...
 
void SimpleEvent_ (long a_date, int a_todo, bool a_lock, Farm *a_farm, LE *a_field)
 Adds an event to this crop management without relying on member variables. More...
 
bool StartUpCrop (int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
 
Holds the translation between the farm operation enum for each cropand the farm management category associated with it More...
 
bool AphidDamage (LE *a_field)
 Compares aphid numbers per m2 with a threshold to return true if threshold is exceeded. More...
 
- Protected Attributes inherited from Crop
Farmm_farm
 
LEm_field
 
FarmEventm_ev
 
int m_first_date
 
int m_count
 
int m_last_date
 
int m_ddegstoharvest
 
int m_base_elements_no
 
Landscapem_OurLandscape
 
bool m_forcespringpossible = false
 Used to signal that the crop can be forced to start in spring. More...
 
TTypesOfCrops m_toc
 The Crop type in terms of the TTypesOfCrops list (smaller list than tov, no country designation) More...
 
int m_CropClassification
 Contains information on whether this is a winter crop, spring crop, or catch crop that straddles the year boundary (0,1,2) More...
 
vector< FarmManagementCategorym_ManagementCategories
 Holds the translation between the farm operation enum for each crop and the farm management category associated with it. More...
 
- Static Protected Attributes inherited from Crop
static int m_date_modifier = 0
 Holds a value that shifts test pesticide use by this many days in crops modified to use it. More...
 

Detailed Description

DK_OCloverGrassGrazed1 class
.

See DK_OCloverGrassGrazed1.h::DK_OCloverGrassGrazed1ToDo for a complete list of all possible events triggered codes by the DK_OCloverGrassGrazed1 management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.

Constructor & Destructor Documentation

◆ DK_OCloverGrassGrazed1()

DK_OCloverGrassGrazed1::DK_OCloverGrassGrazed1 ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
99  : Crop(a_tov, a_toc, a_L)
100  {
101  // When we start it off, the first possible date for a farm operation
102  // This information is used by other crops when they decide how much post processing of
103  // the management is allowed after harvest before the next crop starts.
104  m_first_date = g_date->DayInYear(1, 4);
106  }

References Calendar::DayInYear(), g_date, Crop::m_first_date, and SetUpFarmCategoryInformation().

Member Function Documentation

◆ Do()

bool DK_OCloverGrassGrazed1::Do ( Farm a_farm,
LE a_field,
FarmEvent a_ev 
)
virtual

The one and only method for a crop management plan. All farm actions go through here.

Called every time something is done to the crop by the farmer in the first instance it is always called with a_ev->todo set to start, but susequently will be called whenever the farmer wants to carry out a new operation.
This method details all the management and relationships between operations necessary to grow and ALMaSS crop - in this case conventional spring barley Fodder.

Reimplemented from Crop.

89 {
90  m_field = a_field; // this is needed because of possible calls to other methods and currently we do not pass parameters.
91  m_farm = a_farm; // this is needed because of possible calls to other methods and currently we do not pass parameters.
92  m_ev = a_ev;
93  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
94  int d1 = 0;
96  // Depending what event has occured jump to the correct bit of code e.g. for ww_start jump to line 67 below
97  switch (a_ev->m_todo)
98  {
99  case dk_oc1_start:
100  {
101  a_field->ClearManagementActionSum();
102 
103  m_last_date = g_date->DayInYear(10, 10); // Should match the last flexdate below
104  //Create a 2d array of 1 plus the number of operations you use. Change only 4+1 to what you need in the line below
105  std::vector<std::vector<int>> flexdates(4 + 1, std::vector<int>(2, 0));
106  // Set up the date management stuff
107  // Start and stop dates for all events after harvest
108  flexdates[0][1] = g_date->DayInYear(10, 7); // last possible day of ferti
109  // Now these are done in pairs, start & end for each operation. If its not used then -1
110  flexdates[1][0] = -1;
111  flexdates[1][1] = g_date->DayInYear(20, 7); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1) - cutting
112  flexdates[2][0] = -1;
113  flexdates[2][1] = g_date->DayInYear(20, 8); // This date will be moved back as far as necessary and potentially to flexdates 2 (end op 2) - cutting
114  flexdates[3][0] = -1;
115  flexdates[3][1] = g_date->DayInYear(20, 9); // This date will be moved back as far as necessary and potentially to flexdates 3 (end op 3) - cutting
116  flexdates[4][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 4 (start op 4)
117  flexdates[4][1] = g_date->DayInYear(10, 10); // This date will be moved back as far as necessary and potentially to flexdates 4 (end op 4) - cattle is out // changed back from 1/11 to 10/10 to fit rots
118  //flexdates[5][0] = -1;
119  //flexdates[5][1] = g_date->DayInYear(1, 11); - we need to update grazing / cutting managements (grazing model)
120 
121  // Below if this is a spring crop use 365, otherwise set this to 0, second parameter is fixed, and the third is the start up operation in the first year
122  int isSpring = 365;
123  if (StartUpCrop(isSpring, flexdates, int(dk_oc1_manure1_s))) break;
124 
125  // End single block date checking code. Please see next line comment as well.
126  // Reinit d1 to first possible starting date.
127  d1 = g_date->OldDays() + g_date->DayInYear(1, 3) + isSpring;
128  // OK, let's go.
129  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
130  if (a_farm->IsStockFarmer()) {
131  SimpleEvent(d1, dk_oc1_manure1_s, false);
132  break;
133  }
134  else SimpleEvent(d1, dk_oc1_manure1_p, false);
135  break;
136  }
137  break;
138 
139  case dk_oc1_manure1_s:
140  if (!a_farm->FA_Manure(a_field, 0.0, g_date->DayInYear(1, 4) - g_date->DayInYear())) {
141  SimpleEvent(g_date->Date() + 1, dk_oc1_manure1_s, true);
142  break;
143  }
144  //fork of parallel events:
145  SimpleEvent(g_date->OldDays() + g_date->DayInYear(10, 4), dk_oc1_grazing, false); // main thread
146  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6), dk_oc1_water, false); // water thread
147  break;
148  case dk_oc1_manure1_p:
149  if (!a_farm->FP_Manure(a_field, 0.0, g_date->DayInYear(1, 4) - g_date->DayInYear())) {
150  SimpleEvent(g_date->Date() + 1, dk_oc1_manure1_p, true);
151  break;
152  }
153  //fork of parallel events:
154  SimpleEvent(g_date->OldDays() + g_date->DayInYear(10, 4), dk_oc1_grazing, false); // main thread
155  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6), dk_oc1_water, false); // water thread
156  break;
157  case dk_oc1_water:
158  if (a_ev->m_lock || a_farm->DoIt_prob(0.50)) {
159  if (!a_farm->Water(a_field, 0.0,
160  g_date->DayInYear(1, 9) - g_date->DayInYear())) {
161  SimpleEvent(g_date->Date() + 1, dk_oc1_water, true);
162  break;
163  }
164  }
165  break;
166 
167  case dk_oc1_grazing: //80% do grazing, rest do cutting
168  if (a_ev->m_lock || a_farm->DoIt(80)) {
170  if (a_field->GetVegHeight() < cfg_farm_cattle_grass_low.value()) GRASS_READY_OC1 = false;
171  if (!a_farm->CattleOut(a_field, 0.0, g_date->DayInYear(15, 4) - g_date->DayInYear(), GRASS_READY_OC1)) {
172  SimpleEvent(g_date->Date() + 1, dk_oc1_grazing, true);
173  break;
174  }
176  break;
177  }
178  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(10, 5), dk_oc1_cutting1, false);
179  break;
180 
181  case dk_oc1_cutting1:
182  if (!a_farm->CutToSilage(a_field, 0.0,
183  g_date->DayInYear(20, 5) - g_date->DayInYear())) {
184  SimpleEvent(g_date->Date() + 1, dk_oc1_cutting1, true);
185  break;
186  }
187  if (a_farm->IsStockFarmer()) {
189  break;
190  }
191  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(20, 5), dk_oc1_manure2_p, false);
192  break;
193 
194  case dk_oc1_cattle_is_out: // Keep the cattle out there
195  // CattleIsOut() returns false if it is not time to stop grazing
197  if (a_field->GetVegHeight() < cfg_farm_cattle_grass_low.value()) GRASS_READY_OC1 = false;
198  if (!a_farm->CattleIsOut(a_field, 0.0, g_date->DayInYear(10, 10) - g_date->DayInYear(), g_date->DayInYear(10, 10), GRASS_READY_OC1)) {
200  break;
201  }
202  SimpleEvent(g_date->Date() + 1, dk_oc1_force_growth, false);
203  break;
204 
205  case dk_oc1_manure2_s:
206  if (!a_farm->FA_Manure(a_field, 0.0, g_date->DayInYear(10, 6) - g_date->DayInYear())) {
207  SimpleEvent(g_date->Date() + 1, dk_oc1_manure2_s, true);
208  break;
209  }
211  break;
212  case dk_oc1_manure2_p:
213  if (!a_farm->FP_Manure(a_field, 0.0, g_date->DayInYear(10, 6) - g_date->DayInYear())) {
214  SimpleEvent(g_date->Date() + 1, dk_oc1_manure2_p, true);
215  break;
216  }
218  break;
219  case dk_oc1_cutting2: //
220  if (!a_farm->CutToSilage(a_field, 0.0,
221  g_date->DayInYear(20, 6) - g_date->DayInYear())) {
222  SimpleEvent(g_date->Date() + 1, dk_oc1_cutting2, true);
223  break;
224  }
225  if (a_farm->IsStockFarmer()) {
227  break;
228  }
229  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 7), dk_oc1_manure3_p, false);
230  break;
231  case dk_oc1_manure3_s: // only if still available (allowed to apply more on field, 25% of 50% = 12.5% as suggestion)
232  if (a_ev->m_lock || a_farm->DoIt(25)) {
233  if (!a_farm->FA_Manure(a_field, 0.0, a_field->GetMDates(1, 0) - g_date->DayInYear())) {
234  SimpleEvent(g_date->Date() + 1, dk_oc1_manure3_s, true);
235  break;
236  }
237  }
238  SimpleEvent(g_date->Date() + 7, dk_oc1_cutting3, false); //main thread
239  break;
240  case dk_oc1_manure3_p: // only if still available (allowed to apply more on field, 25% of 50% = 12.5% as suggestion)
241  if (a_ev->m_lock || a_farm->DoIt(25)) {
242  if (!a_farm->FP_Manure(a_field, 0.0, a_field->GetMDates(1, 0) - g_date->DayInYear())) {
243  SimpleEvent(g_date->Date() + 1, dk_oc1_manure3_p, true);
244  break;
245  }
246  }
247  SimpleEvent(g_date->Date() + 7, dk_oc1_cutting3, false); //main thread
248  break;
249  case dk_oc1_cutting3: //
250  if (!a_farm->CutToSilage(a_field, 0.0, a_field->GetMDates(1, 1) - g_date->DayInYear())) {
251  SimpleEvent(g_date->Date() + 1, dk_oc1_cutting3, true);
252  break;
253  }
254  SimpleEvent(g_date->Date() + 20, dk_oc1_cutting4, false);
255  break;
256  case dk_oc1_cutting4: //
257  if (!a_farm->CutToSilage(a_field, 0.0, a_field->GetMDates(1, 2) - g_date->DayInYear())) {
258  SimpleEvent(g_date->Date() + 1, dk_oc1_cutting4, true);
259  break;
260  }
261  SimpleEvent(g_date->Date() + 20, dk_oc1_cutting5, false);
262  break;
263  case dk_oc1_cutting5: //
264  if (!a_farm->CutToSilage(a_field, 0.0, a_field->GetMDates(1, 3) - g_date->DayInYear())) {
265  SimpleEvent(g_date->Date() + 1, dk_oc1_cutting5, true);
266  break;
267  }
269  break;
270  case dk_oc1_force_growth: // Need to add this in the end to make sure grass decays in winter
271  if (g_date->DayInYear() < g_date->DayInYear(1, 11)) {
273  break;
274  }
275  else if (g_date->DayInYear() < g_date->DayInYear(31, 12)) {
276  a_field->ForceGrowthTest();
278  break;
279  }
280  done = true; // end of plan
281  break;
282  // So we are done, and somewhere else the farmer will queue up the start event of the next crop
283  // END OF MAIN THREAD
284  default:
285  g_msg->Warn(WARN_BUG, "DK_OCloverGrassGrazed1::Do(): "
286  "Unknown event type! ", "");
287  exit(1);
288  }
289  if (done) a_ev->m_forcespring = true; // Here we need to force the next crop to spring operation, so set the ev->forcespring to true
290  return done;
291 }

References Farm::CattleIsOut(), Farm::CattleOut(), cfg_farm_cattle_grass_high, cfg_farm_cattle_grass_low, LE::ClearManagementActionSum(), Farm::CutToSilage(), Calendar::Date(), Calendar::DayInYear(), dk_oc1_cattle_is_out, dk_oc1_cutting1, dk_oc1_cutting2, dk_oc1_cutting3, dk_oc1_cutting4, dk_oc1_cutting5, dk_oc1_force_growth, dk_oc1_grazing, dk_oc1_manure1_p, dk_oc1_manure1_s, dk_oc1_manure2_p, dk_oc1_manure2_s, dk_oc1_manure3_p, dk_oc1_manure3_s, dk_oc1_start, dk_oc1_water, Farm::DoIt(), Farm::DoIt_prob(), Farm::FA_Manure(), LE::ForceGrowthTest(), Farm::FP_Manure(), g_date, g_msg, LE::GetMDates(), LE::GetVegHeight(), GRASS_READY_OC1, Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, FarmEvent::m_forcespring, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Calendar::OldDays(), Crop::SimpleEvent(), Crop::StartUpCrop(), tov_DKOCloverGrassGrazed1, CfgInt::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OCloverGrassGrazed1::SetUpFarmCategoryInformation ( )
inline
107  {
108  const int elements = 2 + (dk_oc1_foobar - DK_OC1_BASE);
110 
111  FarmManagementCategory catlist[elements] =
112  {
113  fmc_Others, // zero element unused but must be here
114  fmc_Others, // dk_oc1_start = 1, // Compulsory, must always be 1 (one).
115  fmc_Others, // dk_oc1_sleep_all_day = DK_OC1_BASE,
116  fmc_Fertilizer, // dk_oc1_manure1_s,
117  fmc_Fertilizer, // dk_oc1_manure1_p,
118  fmc_Watering, // dk_oc1_water,
119  fmc_Cutting, // dk_oc1_cutting1,
120  fmc_Grazing, // dk_oc1_grazing,
121  fmc_Grazing, // dk_oc1_cattle_is_out,
122  fmc_Fertilizer, // dk_oc1_manure2_s,
123  fmc_Fertilizer, // dk_oc1_manure2_p,
124  fmc_Cutting, // dk_oc1_cutting2,
125  fmc_Fertilizer, // dk_oc1_manure3_s,
126  fmc_Fertilizer, // dk_oc1_manure3_p,
127  fmc_Cutting, // dk_oc1_cutting3,
128  fmc_Cutting, // dk_oc1_cutting4,
129  fmc_Cutting, // dk_oc1_cutting5,
130  fmc_Others // dk_oc1_force_growth
131  // no foobar entry
132  };
133  // Iterate over the catlist elements and copy them to vector
134  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
135 
136  }

References DK_OC1_BASE, dk_oc1_foobar, fmc_Cutting, fmc_Fertilizer, fmc_Grazing, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DK_OCloverGrassGrazed1().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
dk_oc1_cutting3
Definition: DK_OCloverGrassGrazed1.h:79
dk_oc1_manure2_s
Definition: DK_OCloverGrassGrazed1.h:74
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
Farm::CattleIsOut
virtual bool CattleIsOut(LE *a_field, double a_user, int a_days, int a_max)
Generate a 'cattle_out' event for every day the cattle are on a_field.
Definition: FarmFuncs.cpp:2470
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::CutToSilage
virtual bool CutToSilage(LE *a_field, double a_user, int a_days)
Cut vegetation for silage on a_field.
Definition: FarmFuncs.cpp:1644
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
cfg_farm_cattle_grass_high
CfgInt cfg_farm_cattle_grass_high
tov_DKOCloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:374
LE::ForceGrowthTest
virtual void ForceGrowthTest(void)
Definition: Elements.h:188
Farm::DoIt_prob
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
Farm::FA_Manure
virtual bool FA_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1110
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
dk_oc1_cattle_is_out
Definition: DK_OCloverGrassGrazed1.h:73
dk_oc1_force_growth
Definition: DK_OCloverGrassGrazed1.h:82
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
dk_oc1_cutting4
Definition: DK_OCloverGrassGrazed1.h:80
Farm::FP_Manure
virtual bool FP_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:896
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
DK_OCloverGrassGrazed1::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OCloverGrassGrazed1.h:107
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
GRASS_READY_OC1
#define GRASS_READY_OC1
Definition: DK_OCloverGrassGrazed1.h:54
LE::GetVegHeight
virtual double GetVegHeight(void)
Definition: Elements.h:148
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
dk_oc1_water
Definition: DK_OCloverGrassGrazed1.h:70
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Crop::StartUpCrop
bool StartUpCrop(int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
Holds the translation between the farm operation enum for each cropand the farm management category a...
Definition: Farm.cpp:652
cfg_farm_cattle_grass_low
CfgInt cfg_farm_cattle_grass_low
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
CfgInt::value
int value() const
Definition: Configurator.h:116
Crop::m_ManagementCategories
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
dk_oc1_manure3_s
Definition: DK_OCloverGrassGrazed1.h:77
Farm::Water
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
dk_oc1_start
Definition: DK_OCloverGrassGrazed1.h:66
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
dk_oc1_cutting5
Definition: DK_OCloverGrassGrazed1.h:81
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
dk_oc1_manure3_p
Definition: DK_OCloverGrassGrazed1.h:78
dk_oc1_manure1_s
Definition: DK_OCloverGrassGrazed1.h:68
dk_oc1_foobar
Definition: DK_OCloverGrassGrazed1.h:83
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
dk_oc1_manure1_p
Definition: DK_OCloverGrassGrazed1.h:69
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
dk_oc1_cutting1
Definition: DK_OCloverGrassGrazed1.h:71
dk_oc1_manure2_p
Definition: DK_OCloverGrassGrazed1.h:75
dk_oc1_cutting2
Definition: DK_OCloverGrassGrazed1.h:76
dk_oc1_grazing
Definition: DK_OCloverGrassGrazed1.h:72
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
Farm::CattleOut
virtual bool CattleOut(LE *a_field, double a_user, int a_days)
Start a grazing event on a_field today.
Definition: FarmFuncs.cpp:2368
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
DK_OC1_BASE
#define DK_OC1_BASE
Definition: DK_OCloverGrassGrazed1.h:53