|
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
37 #ifndef WinterRyeStrigling_H
38 #define WinterRyeStrigling_H
40 #define WRYES_BASE 8100
41 #define WRYS_DID_MANURE m_field->m_user[0]
42 #define WRYS_DID_SLUDGE m_field->m_user[1]
128 #endif // WinterRye_H
int GetMDates(int a, int b)
Definition: Elements.h:405
Definition: WinterRyeStrigling.h:58
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
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
Definition: LandscapeFarmingEnums.h:1005
CfgFloat cfg_herbi_app_prop
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Definition: WinterRyeStrigling.h:70
bool IsStockFarmer(void)
Definition: Farm.h:961
Definition: WinterRyeStrigling.h:50
virtual bool Strigling(LE *a_field, double a_user, int a_days)
Carry out a mechanical weeding on a_field.
Definition: FarmFuncs.cpp:1206
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
bool m_lock
Definition: Farm.h:384
virtual bool FP_ManganeseSulphate(LE *a_field, double a_user, int a_days)
Apply Manganse Sulphate to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:840
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
virtual bool FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
Definition: WinterRyeStrigling.h:47
Definition: WinterRyeStrigling.h:53
bool m_first_year
Definition: Farm.h:386
class Calendar * g_date
Definition: Calendar.cpp:37
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
virtual bool FA_Sludge(LE *a_field, double a_user, int a_days)
Spread sewege sludge on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1140
double value() const
Definition: Configurator.h:142
Definition: WinterRyeStrigling.h:52
int m_base_elements_no
Definition: Farm.h:505
CfgFloat cfg_strigling_prop
int m_first_date
Definition: Farm.h:501
int m_startday
Definition: Farm.h:385
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
Definition: WinterRyeStrigling.h:60
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: WinterRyeStrigling.cpp:38
The base class for all crops.
Definition: Farm.h:495
Definition: WinterRyeStrigling.h:66
Definition: WinterRyeStrigling.h:55
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
WinterRyeSToDo
Definition: WinterRyeStrigling.h:44
Definition: WinterRyeStrigling.h:51
Definition: WinterRyeStrigling.h:48
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
Definition: WinterRyeStrigling.h:65
long Date(void)
Definition: Calendar.h:57
Definition: WinterRyeStrigling.h:69
Definition: LandscapeFarmingEnums.h:1008
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
Definition: LandscapeFarmingEnums.h:1003
#define WRYS_DID_MANURE
Definition: WinterRyeStrigling.h:41
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
Definition: LandscapeFarmingEnums.h:1011
Definition: WinterRyeStrigling.h:64
long OldDays(void)
Definition: Calendar.h:60
Definition: WinterRyeStrigling.h:46
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Definition: WinterRyeStrigling.h:49
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
CfgFloat cfg_fungi_app_prop1
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
Definition: WinterRyeStrigling.h:68
int m_todo
Definition: Farm.h:388
virtual bool InsecticideTreat(LE *a_field, double a_user, int a_days)
Apply insecticide to a_field.
Definition: FarmFuncs.cpp:2135
Definition: WinterRyeStrigling.h:63
virtual bool AutumnRoll(LE *a_field, double a_user, int a_days)
Carry out a roll event in the autumn on a_field.
Definition: FarmFuncs.cpp:299
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: Elements.h:86
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
int m_last_date
Definition: Farm.h:503
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
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
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
virtual bool FA_AmmoniumSulphate(LE *a_field, double a_user, int a_days)
Apply ammonium sulphate to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1081
#define WRYES_BASE
Definition: WinterRyeStrigling.h:40
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
The base class for all farm types.
Definition: Farm.h:755
void SetUpFarmCategoryInformation()
Definition: WinterRyeStrigling.h:85
Double configurator entry class.
Definition: Configurator.h:126
Definition: WinterRyeStrigling.h:59
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
Definition: LandscapeFarmingEnums.h:1012
Definition: WinterRyeStrigling.h:61
CfgFloat cfg_ins_app_prop1
Definition: WinterRyeStrigling.h:62
virtual bool GrowthRegulator(LE *a_field, double a_user, int a_days)
Apply growth regulator to a_field.
Definition: FarmFuncs.cpp:2070
Definition: WinterRyeStrigling.h:76
int DayInYear(void)
Definition: Calendar.h:58
Definition: WinterRyeStrigling.h:54
Definition: WinterRyeStrigling.h:57
WinterRyeStrigling(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: WinterRyeStrigling.h:80
CfgFloat cfg_greg_app_prop
void SetMConstants(int a, int c)
Definition: Elements.h:408
virtual bool HayTurning(LE *a_field, double a_user, int a_days)
Carry out hay turning on a_field.
Definition: FarmFuncs.cpp:1491
Definition: WinterRyeStrigling.h:67
FarmEvent * m_ev
Definition: Farm.h:500
#define WRYS_DID_SLUDGE
Definition: WinterRyeStrigling.h:42
Definition: MapErrorMsg.h:34
Definition: LandscapeFarmingEnums.h:1007
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Definition: WinterRyeStrigling.h:45
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523
Definition: WinterRyeStrigling.h:71
Definition: WinterRyeStrigling.h:56