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
OWinterRye Class Reference

#include <OWinterRye.h>

Inheritance diagram for OWinterRye:
Crop

Public Member Functions

bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 
 OWinterRye (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...
 

Constructor & Destructor Documentation

◆ OWinterRye()

OWinterRye::OWinterRye ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
61  : Crop(a_tov, a_toc, a_L)
62  {
65  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

34 {
35  m_farm = a_farm;
36  m_field = a_field;
37  m_ev = a_ev;
38 
39  bool done = false;
40 
41  switch ( m_ev->m_todo )
42  {
43  case owry_start:
44  {
45  a_field->ClearManagementActionSum();
46 
47  // Start single block date checking code to be cut-'n-pasted...
48  // Set up the date management stuff
50  // Start and stop dates for all events after harvest
51  int noDates= 2;
52  m_field->SetMDates(0,0,g_date->DayInYear(6,8));
53  // Determined by harvest date - used to see if at all possible
54  m_field->SetMDates(1,0,g_date->DayInYear(15,8));
55  m_field->SetMDates(0,1,g_date->DayInYear(20,8));
56  m_field->SetMDates(1,1,g_date->DayInYear(25,8));
57  // Check the next crop for early start, unless it is a spring crop
58  // in which case we ASSUME that no checking is necessary!!!!
59  // So DO NOT implement a crop that runs over the year boundary
60  if (m_ev->m_startday>g_date->DayInYear(1,7))
61  {
62  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
63  {
64  g_msg->Warn( WARN_BUG, "OWinterRye::Do(): "
65  "Harvest too late for the next crop to start!!!", "" );
66  exit( 1 );
67  }
68  // Now fix any late finishing problems
69  for (int i=0; i<noDates; i++)
70  {
71  if (m_field->GetMDates(0,i)>=m_ev->m_startday)
73  if (m_field->GetMDates(1,i)>=m_ev->m_startday)
75  }
76  }
77  // Now no operations can be timed after the start of the next crop.
78 
79  int d1;
80  if ( ! m_ev->m_first_year )
81  {
82  int today=g_date->Date();
83  // Are we before July 1st?
84  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
85  if (today < d1)
86  {
87  // Yes, too early. We assumme this is because the last crop was late
88  g_msg->Warn( WARN_BUG, " OWinterRye::Do(): "
89  "Crop start attempt between 1st Jan & 1st July", "" );
90  exit( 1 );
91  }
92  else
93  {
94  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
95  if (today > d1)
96  {
97  // Yes too late - should not happen - raise an error
98  g_msg->Warn( WARN_BUG, " OWinterRye::Do(): "
99  "Crop start attempt after last possible start date", "" );
100  exit( 1 );
101  }
102  }
103  }
104  else
105  {
107  owry_harvest, false );
108  break;
109  }
110  // End single block date checking code. Please see next line
111  // comment as well.
112  // Reinit d1 to first possible starting date.
113  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
114  if ( g_date->Date() > d1 ) {
115  d1 = g_date->Date();
116  }
117  // OK, let's go.
118  if ( m_farm->IsStockFarmer()) {
119  SimpleEvent( d1, owry_fertmanure_stock, false );
120  } else {
121  SimpleEvent( d1, owry_fertmanure_plant, false );
122  }
123  }
124  break;
125 
127  if ( m_ev->m_lock || m_farm->DoIt( 50 )) {
128  if (!m_farm->FA_Manure( m_field, 0.0,
129  g_date->DayInYear( 30, 9 ) -
130  g_date->DayInYear())) {
131  SimpleEvent( g_date->Date() + 1, owry_fertmanure_stock, true );
132  break;
133  }
134  }
135  SimpleEvent( g_date->Date() +1, owry_fertslurry_stock, false );
136  break;
137 
139  if (!m_farm->FA_Slurry( m_field, 0.0,
140  g_date->DayInYear( 30, 9 ) -
141  g_date->DayInYear())) {
142  SimpleEvent( g_date->Date() + 1, owry_fertslurry_stock, true );
143  break;
144  }
146  break;
147 
149  if ( m_ev->m_lock || m_farm->DoIt( 10 )) {
150  if (!m_farm->FP_Manure( m_field, 0.0,
151  g_date->DayInYear( 30, 9 ) -
152  g_date->DayInYear())) {
153  SimpleEvent( g_date->Date() + 1, owry_fertmanure_plant, true );
154  break;
155  }
156  }
157  SimpleEvent( g_date->Date() + 1, owry_fertslurry_plant, false );
158  break;
159 
161  if (!m_farm->FP_Slurry( m_field, 0.0,
162  g_date->DayInYear( 30, 9 ) -
163  g_date->DayInYear())) {
164  SimpleEvent( g_date->Date() + 1, owry_fertslurry_plant, true );
165  break;
166  }
168  break;
169 
170  case owry_autumn_plough:
171  if (!m_farm->AutumnPlough( m_field, 0.0,
172  g_date->DayInYear( 5, 10 ) -
173  g_date->DayInYear())) {
174  SimpleEvent( g_date->Date() + 1, owry_autumn_plough, true );
175  break;
176  }
178  break;
179 
180  case owry_autumn_harrow:
181  if (!m_farm->AutumnHarrow( m_field, 0.0,
182  g_date->DayInYear( 10, 10 ) -
183  g_date->DayInYear())) {
184  SimpleEvent( g_date->Date() + 1, owry_autumn_harrow, true );
185  break;
186  }
187  {
188  int d1 = g_date->Date();
189  if ( d1 < g_date->OldDays() + g_date->DayInYear( 1,9 )) {
190  d1 = g_date->OldDays() + g_date->DayInYear( 1,9 );
191  }
192  SimpleEvent( d1, owry_autumn_sow, false );
193  }
194  break;
195 
196  case owry_autumn_sow:
197  if (!m_farm->AutumnSow( m_field, 0.0,
198  g_date->DayInYear( 15, 10 ) -
199  g_date->DayInYear())) {
200  SimpleEvent( g_date->Date() + 1, owry_autumn_sow, true );
201  break;
202  }
203  {
204  int d1 = g_date->Date() + 10;
205  if ( d1 < g_date->OldDays() + g_date->DayInYear( 11,9 )) {
206  d1 = g_date->OldDays() + g_date->DayInYear( 11,9 );
207  }
208  SimpleEvent( d1, owry_strigling_one, false );
209  }
210  break;
211 
212  case owry_strigling_one:
213  if ( m_ev->m_lock || (cfg_strigling_prop.value() * m_farm->DoIt( 70 ))) {
214  if (!m_farm->Strigling( m_field, 0.0,
215  g_date->DayInYear( 25, 10 ) -
216  g_date->DayInYear())) {
217  SimpleEvent( g_date->Date() + 1, owry_strigling_one, true );
218  break;
219  }
220  }
221  {
222  int d1 = g_date->Date() + 7;
223  if ( d1 < g_date->OldDays() + g_date->DayInYear( 5,10 )) {
224  d1 = g_date->OldDays() + g_date->DayInYear( 5,10 );
225  }
226  SimpleEvent( d1, owry_strigling_two, false );
227  }
228  break;
229 
230  case owry_strigling_two:
231  if ( m_ev->m_lock || (cfg_strigling_prop.value() * m_farm->DoIt( 15 ))) {
232  if (!m_farm->Strigling( m_field, 0.0,
233  g_date->DayInYear( 2, 11 ) -
234  g_date->DayInYear())) {
235  SimpleEvent( g_date->Date() + 1, owry_strigling_two, true );
236  break;
237  }
238  }
239  if ( m_farm->IsStockFarmer()) {
240  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,3 ) + 365,
241  owry_strigling_three, false );
242  } else {
243  // Skip to spring sow.
244  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,3 ) + 365,
245  owry_spring_sow, false );
246  }
247  break;
248 
249  case owry_spring_sow:
250  if ( m_ev->m_lock || m_farm->DoIt( 60 )) {
251  if (!m_farm->SpringSow( m_field, 0.0,
252  g_date->DayInYear( 15, 4 ) -
253  g_date->DayInYear())) {
254  SimpleEvent( g_date->Date() + 1, owry_spring_sow, true );
255  break;
256  }
257  {
258  // Did sow, so skip third strigling.
259  int d1 = g_date->Date();
260  if ( d1 < g_date->OldDays() + g_date->DayInYear( 10,4 )) {
261  d1 = g_date->OldDays() + g_date->DayInYear( 10,4 );
262  }
263  SimpleEvent( d1, owry_spring_roll, false );
264  break;
265  }
266  }
267  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,3 ),
268  owry_strigling_three, false );
269  break;
270 
272  if ( m_ev->m_lock || (cfg_strigling_prop.value() * m_farm->DoIt( 60 ))) {
273  if (!m_farm->Strigling( m_field, 0.0,
274  g_date->DayInYear( 15, 4 ) -
275  g_date->DayInYear())) {
276  SimpleEvent( g_date->Date() + 1, owry_strigling_three, true );
277  break;
278  }
279  }
280  {
281  int d1 = g_date->Date();
282  if ( d1 < g_date->OldDays() + g_date->DayInYear( 10,4 )) {
283  d1 = g_date->OldDays() + g_date->DayInYear( 10,4 );
284  }
285  SimpleEvent( d1, owry_spring_roll, false );
286  }
287  break;
288 
289  case owry_spring_roll:
290  if ( m_ev->m_lock || m_farm->DoIt( 10 )) {
291  if (!m_farm->SpringRoll( m_field, 0.0,
292  g_date->DayInYear( 30,4 ) -
293  g_date->DayInYear())) {
294  SimpleEvent( g_date->Date()+1, owry_spring_roll, true );
295  break;
296  }
297  }
298  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,8 ),
299  owry_harvest, false );
300  break;
301 
302  case owry_harvest:
303  if (!m_farm->Harvest( m_field, 0.0,
304  m_field->GetMDates(1,0) -
305  g_date->DayInYear())) {
306  SimpleEvent( g_date->Date() + 1, owry_harvest, true );
307  break;
308  }
309  if ( m_farm->IsStockFarmer()) {
311  } else {
313  }
314  break;
315 
317  if (!m_farm->StrawChopping( m_field, 0.0,
318  m_field->GetMDates(1,0) -
319  g_date->DayInYear())) {
321  break;
322  }
323  // End of program for plant farmers.
324  done = true;
325  break;
326 
328  if ( m_ev->m_lock || m_farm->DoIt( 80 )) {
329  if (!m_farm->StrawChopping( m_field, 0.0,
330  m_field->GetMDates(1,0) -
331  g_date->DayInYear())) {
333  break;
334  }
335  // Did chop, so stop here.
336  done = true;
337  break;
338  }
339  // No chopping, so do hay turning and bailing.
340  SimpleEvent( g_date->Date(), owry_hay_turning, false );
341  break;
342 
343  case owry_hay_turning:
344  if (!m_farm->HayTurning( m_field, 0.0,
345  m_field->GetMDates(0,1) -
346  g_date->DayInYear())) {
347  SimpleEvent( g_date->Date() + 1, owry_hay_turning, true );
348  break;
349  }
350  {
351  int d1 = g_date->Date();
352  if ( d1 < g_date->OldDays() + g_date->DayInYear( 5,8 )) {
353  d1 = g_date->OldDays() + g_date->DayInYear( 5,8 );
354  }
355  SimpleEvent( d1, owry_hay_bailing, false );
356  }
357  break;
358 
359  case owry_hay_bailing:
360  if (!m_farm->HayBailing( m_field, 0.0,
361  m_field->GetMDates(1,1) -
362  g_date->DayInYear())) {
363  SimpleEvent( g_date->Date() + 1, owry_hay_bailing, true );
364  break;
365  }
366  // End of program.
367  done = true;
368  break;
369 
370  default:
371  g_msg->Warn( WARN_BUG, "OWinterRye::Do(): "
372  "Unknown event type! ", "" );
373  exit( 1 );
374  }
375 
376  return done;
377 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnSow(), cfg_strigling_prop, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::FA_Manure(), Farm::FA_Slurry(), Farm::FP_Manure(), Farm::FP_Slurry(), g_date, g_msg, LE::GetMDates(), Farm::Harvest(), Farm::HayBailing(), Farm::HayTurning(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), owry_autumn_harrow, owry_autumn_plough, owry_autumn_sow, owry_fertmanure_plant, owry_fertmanure_stock, owry_fertslurry_plant, owry_fertslurry_stock, owry_harvest, owry_hay_bailing, owry_hay_turning, owry_spring_roll, owry_spring_sow, owry_start, owry_straw_chopping_plant, owry_straw_chopping_stock, owry_strigling_one, owry_strigling_three, owry_strigling_two, LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringRoll(), Farm::SpringSow(), Farm::StrawChopping(), Farm::Strigling(), CfgFloat::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void OWinterRye::SetUpFarmCategoryInformation ( )
inline
66  {
67  const int elements = 2 + (owry_foobar - OWRYE_BASE);
69 
70  FarmManagementCategory catlist[elements] =
71  {
72  fmc_Others, // zero element unused but must be here
73  fmc_Others, // owry_start = 1, // Compulsory, start event must always be 1 (one).
74  fmc_Fertilizer, // owry_fertmanure_plant = OWRYE_BASE,
75  fmc_Fertilizer, // owry_fertmanure_stock,
76  fmc_Fertilizer, // owry_fertslurry_plant,
77  fmc_Fertilizer, // owry_fertslurry_stock,
78  fmc_Cultivation, // owry_autumn_plough,
79  fmc_Cultivation, // owry_autumn_harrow,
80  fmc_Others, // owry_autumn_sow,
81  fmc_Cultivation, // owry_strigling_one,
82  fmc_Cultivation, // owry_strigling_two,
83  fmc_Others, // owry_spring_sow,
84  fmc_Cultivation, // owry_strigling_three,
85  fmc_Cultivation, // owry_spring_roll,
86  fmc_Harvest, // owry_harvest,
87  fmc_Others, // owry_straw_chopping_plant,
88  fmc_Others, // owry_straw_chopping_stock,
89  fmc_Others, // owry_hay_turning,
90  fmc_Others // owry_hay_bailing,
91 
92 
93  // no foobar entry
94 
95  };
96  // Iterate over the catlist elements and copy them to vector
97  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
98 
99  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, owry_foobar, and OWRYE_BASE.

Referenced by OWinterRye().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
Farm::SpringRoll
virtual bool SpringRoll(LE *a_field, double a_user, int a_days)
Carry out a roll event in the spring on a_field.
Definition: FarmFuncs.cpp:487
Farm::FA_Slurry
virtual bool FA_Slurry(LE *a_field, double a_user, int a_days)
Spready slurry on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1067
owry_start
Definition: OWinterRye.h:34
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
owry_strigling_three
Definition: OWinterRye.h:45
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
Farm::Strigling
virtual bool Strigling(LE *a_field, double a_user, int a_days)
Carry out a mechanical weeding on a_field.
Definition: FarmFuncs.cpp:1206
Farm::Harvest
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
owry_foobar
Definition: OWinterRye.h:52
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
OWinterRye::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: OWinterRye.h:66
owry_spring_sow
Definition: OWinterRye.h:44
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
Farm::SpringSow
virtual bool SpringSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the spring on a_field.
Definition: FarmFuncs.cpp:501
CfgFloat::value
double value() const
Definition: Configurator.h:142
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
owry_straw_chopping_plant
Definition: OWinterRye.h:48
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
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
owry_autumn_harrow
Definition: OWinterRye.h:40
owry_fertslurry_plant
Definition: OWinterRye.h:37
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
owry_harvest
Definition: OWinterRye.h:47
owry_strigling_two
Definition: OWinterRye.h:43
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
owry_fertmanure_stock
Definition: OWinterRye.h:36
Farm::HayBailing
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
owry_fertmanure_plant
Definition: OWinterRye.h:35
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Farm::StrawChopping
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
OWRYE_BASE
#define OWRYE_BASE
Definition: OWinterRye.h:31
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::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
owry_autumn_sow
Definition: OWinterRye.h:41
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
Farm::FP_Slurry
virtual bool FP_Slurry(LE *a_field, double a_user, int a_days)
Apply slurry to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:823
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
Farm::AutumnPlough
virtual bool AutumnPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the autumn on a_field.
Definition: FarmFuncs.cpp:212
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
owry_strigling_one
Definition: OWinterRye.h:42
Farm::AutumnHarrow
virtual bool AutumnHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the autumn on a_field.
Definition: FarmFuncs.cpp:285
Farm::AutumnSow
virtual bool AutumnSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the autumn on a_field.
Definition: FarmFuncs.cpp:360
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
owry_hay_bailing
Definition: OWinterRye.h:51
owry_hay_turning
Definition: OWinterRye.h:50
owry_autumn_plough
Definition: OWinterRye.h:39
cfg_strigling_prop
CfgFloat cfg_strigling_prop
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
owry_straw_chopping_stock
Definition: OWinterRye.h:49
owry_fertslurry_stock
Definition: OWinterRye.h:38
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
owry_spring_roll
Definition: OWinterRye.h:46
Farm::HayTurning
virtual bool HayTurning(LE *a_field, double a_user, int a_days)
Carry out hay turning on a_field.
Definition: FarmFuncs.cpp:1491
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001