Loading [MathJax]/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
OPotatoes Class Reference

#include <OPotatoes.h>

Inheritance diagram for OPotatoes:
Crop

Public Member Functions

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

◆ OPotatoes()

OPotatoes::OPotatoes ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline

Member Function Documentation

◆ Do()

bool OPotatoes::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  int d1;
39 
40  bool done = false;
41 
42  switch ( m_ev->m_todo ) {
43  case ope_start:
44  {
45  OPOT_SLURRY_DATE = 0;
46  OPOT_SOW_DATE = 0;
48  a_field->ClearManagementActionSum();
49 
50  m_field->SetVegPatchy(true); // Root crop so open until tall
51 
52  // Set up the date management stuff
54  // Start and stop dates for all events after harvest
55  m_field->SetMDates(0,0,g_date->DayInYear(1,11));
56  // Determined by harvest date - used to see if at all possible
57  m_field->SetMDates(1,0,g_date->DayInYear(1,11));
58  // Check the next crop for early start, unless it is a spring crop
59  // in which case we ASSUME that no checking is necessary!!!!
60  // So DO NOT implement a crop that runs over the year boundary
61  if (m_ev->m_startday>g_date->DayInYear(1,7))
62  {
63  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
64  {
65  g_msg->Warn( WARN_BUG, "OPotatoes::Do(): "
66  "Harvest too late for the next crop to start!!!", "" );
67  exit( 1 );
68  }
69  // No late finishing problems fix possible
70  }
71 
72  int today=g_date->Date();
73  d1 = g_date->OldDays() + m_first_date;
74  if ( ! m_ev->m_first_year ) d1+=365; // Add 365 for spring crop (not 1st yr)
75  if (today > d1)
76  {
77  // Yes too late - should not happen - raise an error
78  g_msg->Warn( WARN_BUG, "OPotatoes::Do(): "
79  "Crop start attempt after last possible start date", "" );
80  exit( 1 );
81  }
82  // Reinit d1 to first possible starting date.
83  d1 = g_date->OldDays() + m_first_date+365; // Add 365 for spring crop
84  if ( g_date->Date() > d1 ) {
85  d1 = g_date->Date();
86  }
87  // OK, let's go.
88  if ( m_farm->IsStockFarmer()) {
89  SimpleEvent( d1, ope_fa_slurry, false );
90  } else {
91  SimpleEvent( d1, ope_fp_slurry, false );
92  }
93  break;
94  }
95 
96  case ope_fa_slurry:
97  d1 = g_date->DayInYear();
98  if (!m_farm->FA_Slurry( m_field, 0.0,
99  g_date->DayInYear( 30, 3 ) - g_date->DayInYear())) {
100  SimpleEvent( g_date->Date() + 1, ope_fa_slurry, false );
101  break;
102  }
104  SimpleEvent( g_date->Date() + 1, ope_fa_manure, false );
105  break;
106 
107  case ope_fa_manure:
108  if ( m_ev->m_lock || m_farm->DoIt( 40 )) {
110  g_date->DayInYear())) {
111  SimpleEvent( g_date->Date() + 1, ope_fa_manure, true );
112  break;
113  }
114  }
116  break;
117 
118  case ope_fp_slurry:
119  d1 = g_date->DayInYear();
120  if (!m_farm->FP_Slurry( m_field, 0.0,
121  g_date->DayInYear( 10, 4 ) - g_date->DayInYear())) {
122  SimpleEvent( g_date->Date() + 1, ope_fp_slurry, false );
123  break;
124  }
126  SimpleEvent( g_date->Date() + 1, ope_fp_manure, false );
127  break;
128 
129  case ope_fp_manure:
130  if ( m_ev->m_lock || m_farm->DoIt( 15 )) {
132  g_date->DayInYear())) {
133  SimpleEvent( g_date->Date() + 1, ope_fp_manure, true );
134  break;
135  }
136  }
138  break;
139 
140  case ope_spring_plough:
141  d1 = g_date->DayInYear();
142  if (!m_farm->SpringPlough( m_field, 0.0,
144  g_date->DayInYear())) {
145  SimpleEvent( g_date->Date() + 1, ope_spring_plough, false );
146  break;
147  }
148  {
149  d1 = g_date->OldDays() + g_date->DayInYear( 10, 3 );
150  if ( g_date->Date() > d1 ) {
151  d1 = g_date->Date();
152  }
153  SimpleEvent( d1, ope_spring_harrow, false );
154  }
155  break;
156 
157  case ope_spring_harrow:
158  if (!m_farm->SpringHarrow( m_field, 0.0,
159  g_date->DayInYear( 15, 4 ) - g_date->DayInYear())) {
160  SimpleEvent( g_date->Date() + 1, ope_spring_harrow, false );
161  break;
162  }
163  {
164  d1 = g_date->OldDays() + g_date->DayInYear( 1, 4 );
165  if ( g_date->Date() + 1> d1 ) {
166  d1 = g_date->Date() + 1;
167  }
168  SimpleEvent( d1, ope_spring_sow, false );
169  }
170  break;
171 
172  case ope_spring_sow:
173  if (!m_farm->SpringSow( m_field, 0.0,
174  g_date->DayInYear( 1, 5 ) - g_date->DayInYear())) {
175  SimpleEvent( g_date->Date() + 1, ope_spring_sow, false );
176  break;
177  }
178  // Start hilling up sub thread.
179  {
180  d1 = g_date->OldDays() + g_date->DayInYear( 18, 4 );
181  if ( g_date->Date() + 18 > d1 ) {
182  d1 = g_date->Date() + 18;
183  }
184  SimpleEvent( d1, ope_hilling_one, false );
185  }
186  if ( m_farm->DoIt( 10 )) {
187  // Flaming
188  d1 = g_date->OldDays() + g_date->DayInYear( 7, 4 );
189  if ( g_date->Date() + 8 > d1 ) {
190  d1 = g_date->Date() + 8;
191  }
192  SimpleEvent( d1, ope_flaming_one, false );
193  } else {
194  // Strigling
195  d1 = g_date->OldDays() + g_date->DayInYear( 12, 4 );
196  if ( g_date->Date() + 12 > d1 ) {
197  d1 = g_date->Date() + 12;
198  }
199  SimpleEvent( d1, ope_strigling_one, false );
200  }
201  break;
202 
203  case ope_flaming_one:
204  if ( m_ev->m_lock || m_farm->DoIt( 10 )) {
205  if (!m_farm->Swathing( m_field, 0.0,
206  g_date->DayInYear( 10, 5 ) -
207  g_date->DayInYear())) {
208  SimpleEvent( g_date->Date() + 1, ope_flaming_one, true );
209  break;
210  }
211  }
212  {
213  d1 = g_date->OldDays() + g_date->DayInYear( 19, 4 );
214  if ( g_date->Date() + 7 > d1 ) {
215  d1 = g_date->Date() + 7;
216  }
217  SimpleEvent( d1, ope_strigling_two, false );
218  }
219  break;
220 
221  case ope_strigling_one:
222  if (!m_farm->Strigling( m_field, 0.0,
223  g_date->DayInYear( 20, 5 ) - g_date->DayInYear())) {
224  SimpleEvent( g_date->Date() + 1, ope_strigling_one, false );
225  break;
226  }
227  {
228  d1 = g_date->OldDays() + g_date->DayInYear( 19, 4 );
229  if ( g_date->Date() + 7 > d1 ) {
230  d1 = g_date->Date() + 7;
231  }
232  SimpleEvent( d1, ope_strigling_two, false );
233  }
234  break;
235 
236  case ope_strigling_two:
237  if (!m_farm->Strigling( m_field, 0.0,
238  g_date->DayInYear( 27, 5 ) - g_date->DayInYear())) {
239  SimpleEvent( g_date->Date() + 1, ope_strigling_two, false );
240  break;
241  }
242  {
243  d1 = g_date->OldDays() + g_date->DayInYear( 28, 4 );
244  if ( g_date->Date() + 7 > d1 ) {
245  d1 = g_date->Date() + 7;
246  }
247  SimpleEvent( d1, ope_strigling_three, false );
248  }
249  break;
250 
251  case ope_strigling_three:
252  if ( !OPOT_HILLING_THREE &&
253  g_date->Date() >= OPOT_HILLING_THREE + 7 ) {
254  SimpleEvent( g_date->Date() + 1, ope_strigling_three, true );
255  break;
256  }
257  if ( m_ev->m_lock || (cfg_strigling_prop.value() * m_farm->DoIt( 75 ))) {
258  if (!m_farm->Strigling( m_field, 0.0,
259  g_date->DayInYear( 12, 6 ) -
260  g_date->DayInYear())) {
261  SimpleEvent( g_date->Date() + 1, ope_strigling_three, true );
262  break;
263  }
264  }
265  {
266  d1 = g_date->OldDays() + g_date->DayInYear( 15, 6 );
267  if ( g_date->Date() + 3 > d1 ) {
268  d1 = g_date->Date() + 3;
269  }
270  SimpleEvent( d1, ope_water_one, false );
271  }
272  break;
273 
274  case ope_hilling_one:
275  if (!m_farm->HillingUp( m_field, 0.0,
276  g_date->DayInYear( 22, 5 ) - g_date->DayInYear())) {
277  SimpleEvent( g_date->Date() + 1, ope_hilling_one, false );
278  break;
279  }
280  {
281  d1 = g_date->OldDays() + g_date->DayInYear( 5, 5 );
282  if ( g_date->Date() + 14 > d1 ) {
283  d1 = g_date->Date() + 14;
284  }
285  SimpleEvent( d1, ope_hilling_two, false );
286  }
287  break;
288 
289  case ope_hilling_two:
290  if (!m_farm->HillingUp( m_field, 0.0,
291  g_date->DayInYear( 10, 6 ) - g_date->DayInYear())) {
292  SimpleEvent( g_date->Date() + 1, ope_hilling_two, false );
293  break;
294  }
295  {
296  d1 = g_date->OldDays() + g_date->DayInYear( 5, 5 );
297  if ( g_date->Date() + 14 > d1 ) {
298  d1 = g_date->Date() + 14;
299  }
300  SimpleEvent( d1, ope_hilling_three, false );
301  }
302  break;
303 
304  case ope_hilling_three:
305  if ( m_ev->m_lock || m_farm->DoIt( 75 )) {
306  if (!m_farm->HillingUp( m_field, 0.0,
307  g_date->DayInYear( 10, 6 ) -
308  g_date->DayInYear())) {
309  SimpleEvent( g_date->Date() + 1, ope_hilling_three, true );
310  break;
311  }
312  }
314  // Main thread continues from strigling three.
315  break;
316 
317  case ope_water_one:
318  if ( m_ev->m_lock || m_farm->DoIt( 80 )) {
319  if (!m_farm->Water( m_field, 0.0,
320  g_date->DayInYear( 30, 6 ) -
321  g_date->DayInYear())) {
322  SimpleEvent( g_date->Date() + 1, ope_water_one, true );
323  break;
324  }
325  }
326  {
327  d1 = g_date->OldDays() + g_date->DayInYear( 26, 6 );
328  if ( g_date->Date() + 10 > d1 ) {
329  d1 = g_date->Date() + 10;
330  }
331  SimpleEvent( d1, ope_water_two, false );
332  }
333  break;
334 
335  case ope_water_two:
336  if ( m_ev->m_lock || m_farm->DoIt( 70 )) {
337  if (!m_farm->Water( m_field, 0.0,
338  g_date->DayInYear( 25, 7 ) -
339  g_date->DayInYear())) {
340  SimpleEvent( g_date->Date() + 1, ope_water_two, true );
341  break;
342  }
343  }
344  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 10, 8 ),
345  ope_flaming_two, false );
346  break;
347 
348  case ope_flaming_two:
349  {
350  if ( m_ev->m_lock || m_farm->DoIt( 10 ))
351  {
352  if (!m_farm->Swathing( m_field, 0.0,
353  g_date->DayInYear( 15,10 ) -
354  g_date->DayInYear()))
355  {
356  SimpleEvent( g_date->Date() + 1, ope_flaming_two, true );
357  break;
358  }
359  }
360  {
361  int d = g_date->OldDays() + g_date->DayInYear( 1, 9 );
362  int rndval = g_random_fnc(7) + 14;
363  if ( g_date->Date() + rndval > d ) {
364  d = g_date->Date() + rndval;
365  }
366  SimpleEvent( d, ope_harvest, false );
367  }
368  break;
369  }
370 
371  case ope_harvest:
372  if (!m_farm->Harvest( m_field, 0.0,
373  g_date->DayInYear( 1, 11 ) - g_date->DayInYear())) {
374  SimpleEvent( g_date->Date() + 1, ope_harvest, false );
375  break;
376  }
377  m_field->SetVegPatchy(false);
378  done = true;
379  break;
380 
381  default:
382  g_msg->Warn( WARN_BUG, "OPotatoesEat::Do(): "
383  "Unknown event type! ", "" );
384  exit( 1 );
385  }
386 
387  return done;
388 }

References 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, g_random_fnc(), LE::GetMDates(), Farm::Harvest(), Farm::HillingUp(), 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(), ope_fa_manure, ope_fa_slurry, ope_flaming_one, ope_flaming_two, ope_fp_manure, ope_fp_slurry, ope_harvest, ope_hilling_one, ope_hilling_three, ope_hilling_two, ope_spring_harrow, ope_spring_plough, ope_spring_sow, ope_start, ope_strigling_one, ope_strigling_three, ope_strigling_two, ope_water_one, ope_water_two, OPOT_HILLING_THREE, OPOT_SLURRY_DATE, OPOT_SOW_DATE, LE::SetMDates(), LE::SetVegPatchy(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringSow(), Farm::Strigling(), Farm::Swathing(), CfgFloat::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void OPotatoes::SetUpFarmCategoryInformation ( )
inline
71  {
72  const int elements = 2 + (ope_foobar - OPOTATOESEAT_BASE);
74 
75  FarmManagementCategory catlist[elements] =
76  {
77  fmc_Others, // zero element unused but must be here
78  fmc_Others, // ope_start = 1, // Compulsory, start event must always be 1 (one).
79  fmc_Fertilizer, // ope_fa_slurry = OPOTATOESEAT_BASE,
80  fmc_Fertilizer, // ope_fa_manure,
81  fmc_Fertilizer, // ope_fp_slurry,
82  fmc_Fertilizer, // ope_fp_manure,
83  fmc_Cultivation, // ope_spring_plough,
84  fmc_Cultivation, // ope_spring_harrow,
85  fmc_Others, // ope_spring_sow,
86  fmc_Others, // ope_flaming_one,
87  fmc_Cultivation, // ope_strigling_one,
88  fmc_Cultivation, // ope_hilling_one,
89  fmc_Cultivation, // ope_strigling_two,
90  fmc_Cultivation, // ope_hilling_two,
91  fmc_Cultivation, // ope_strigling_three,
92  fmc_Cultivation, // ope_hilling_three,
93  fmc_Watering, // ope_water_one,
94  fmc_Watering, // ope_water_two,
95  fmc_Others, // ope_flaming_two,
96  fmc_Harvest // ope_harvest,
97 
98 
99  // no foobar entry
100 
101  };
102  // Iterate over the catlist elements and copy them to vector
103  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
104 
105  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, ope_foobar, and OPOTATOESEAT_BASE.

Referenced by OPotatoes().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
ope_hilling_three
Definition: OPotatoes.h:52
ope_hilling_one
Definition: OPotatoes.h:48
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
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Farm::SpringPlough
virtual bool SpringPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the spring on a_field.
Definition: FarmFuncs.cpp:421
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
ope_fa_slurry
Definition: OPotatoes.h:39
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
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
OPOTATOESEAT_BASE
#define OPOTATOESEAT_BASE
Definition: OPotatoes.h:32
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
ope_water_two
Definition: OPotatoes.h:54
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
ope_harvest
Definition: OPotatoes.h:56
ope_flaming_two
Definition: OPotatoes.h:55
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
ope_start
Definition: OPotatoes.h:38
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
Farm::HillingUp
virtual bool HillingUp(LE *a_field, double a_user, int a_days)
Do hilling up on a_field, probably of potatoes.
Definition: FarmFuncs.cpp:1302
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
ope_flaming_one
Definition: OPotatoes.h:46
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_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
ope_water_one
Definition: OPotatoes.h:53
Calendar::Date
long Date(void)
Definition: Calendar.h:57
ope_spring_sow
Definition: OPotatoes.h:45
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
OPOT_HILLING_THREE
#define OPOT_HILLING_THREE
Definition: OPotatoes.h:35
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
LE::SetVegPatchy
void SetVegPatchy(bool p)
Definition: Elements.h:229
ope_fp_slurry
Definition: OPotatoes.h:41
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
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
ope_hilling_two
Definition: OPotatoes.h:50
ope_fp_manure
Definition: OPotatoes.h:42
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
OPOT_SLURRY_DATE
#define OPOT_SLURRY_DATE
Definition: OPotatoes.h:33
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
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
ope_strigling_two
Definition: OPotatoes.h:49
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
ope_strigling_one
Definition: OPotatoes.h:47
ope_strigling_three
Definition: OPotatoes.h:51
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
OPotatoes::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: OPotatoes.h:71
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
ope_spring_harrow
Definition: OPotatoes.h:44
OPOT_SOW_DATE
#define OPOT_SOW_DATE
Definition: OPotatoes.h:34
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
cfg_strigling_prop
CfgFloat cfg_strigling_prop
Farm::Swathing
virtual bool Swathing(LE *a_field, double a_user, int a_days)
Cut the crop on a_field and leave it lying (probably rape)
Definition: FarmFuncs.cpp:1350
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
ope_spring_plough
Definition: OPotatoes.h:43
ope_fa_manure
Definition: OPotatoes.h:40
ope_foobar
Definition: OPotatoes.h:57
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Farm::SpringHarrow
virtual bool SpringHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the spring on a_field.
Definition: FarmFuncs.cpp:459