Loading [MathJax]/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
28 #ifndef FI_StarchPotato_h
29 #define FI_StarchPotato_h
31 #define FI_SP_BASE 70300
33 #define FI_SP_DECIDE_TO_HERB m_field->m_user[5]
34 #define FI_SP_DECIDE_TO_FI m_field->m_user[6]
68 #endif // FI_SugarBeet_h
int GetMDates(int a, int b)
Definition: Elements.h:405
Definition: FI_StarchPotato.h:44
Definition: FI_StarchPotato.h:58
Definition: FI_StarchPotato.h:52
virtual bool PreseedingCultivator(LE *a_field, double a_user, int a_days)
Carry out preseeding cultivation on a_field (tilling set including cultivator and string roller to co...
Definition: FarmFuncs.cpp:312
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
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
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
FI_SugarBeet(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: FI_StarchPotato.h:62
bool m_lock
Definition: Farm.h:384
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
CfgFloat cfg_fungi_app_prop1
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
int GetYearNumber(void)
Definition: Calendar.h:72
Definition: FI_StarchPotato.h:47
bool m_first_year
Definition: Farm.h:386
#define FI_SB_DECIDE_TO_FI
Definition: FI_SugarBeet.h:34
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
class Calendar * g_date
Definition: Calendar.cpp:37
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Definition: FI_StarchPotato.h:45
Definition: FI_StarchPotato.h:49
Definition: FI_StarchPotato.h:48
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: FI_SugarBeet.h:39
The base class for all crops.
Definition: Farm.h:495
#define FI_SP_BASE
Definition: FI_StarchPotato.h:31
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Definition: FI_SugarBeet.h:44
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
#define FI_SB_DECIDE_TO_HERB
Definition: FI_SugarBeet.h:33
Definition: FI_StarchPotato.h:40
Definition: FI_StarchPotato.h:42
long Date(void)
Definition: Calendar.h:57
Definition: FI_StarchPotato.h:46
int GetSoilType()
Definition: Elements.h:302
Definition: FI_SugarBeet.h:40
CfgFloat cfg_ins_app_prop1
void SetVegPatchy(bool p)
Definition: Elements.h:229
Definition: FI_SugarBeet.h:42
long OldDays(void)
Definition: Calendar.h:60
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Definition: FI_StarchPotato.h:38
Definition: FI_SugarBeet.h:41
Definition: FI_SugarBeet.h:37
Definition: FI_SugarBeet.h:38
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
Definition: FI_StarchPotato.h:51
virtual bool PreseedingCultivatorSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out preseeding cultivation together with sow on a_field (tilling and sowing set including culti...
Definition: FarmFuncs.cpp:325
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
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
virtual bool HarvestLong(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field (only differs in the DoIt chance cf harvest)
Definition: FarmFuncs.cpp:1421
Definition: FI_StarchPotato.h:53
virtual bool BiocideTreat(LE *a_field, double a_user, int a_days)
Apply Biocide to a_field.
Definition: FarmFuncs.cpp:2175
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: FI_StarchPotato.h:41
CfgFloat cfg_herbi_app_prop
Definition: LandscapeFarmingEnums.h:696
Definition: Elements.h:86
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 SpringSowWithFerti(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 with start fertilizer in the spring on a_field.
Definition: FarmFuncs.cpp:537
CfgFloat cfg_greg_app_prop
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
Definition: FI_StarchPotato.h:50
Double configurator entry class.
Definition: Configurator.h:126
Definition: FI_StarchPotato.h:43
Definition: FI_StarchPotato.h:39
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: FI_StarchPotato.cpp:37
FI_SugarBeetToDo
Definition: FI_StarchPotato.h:36
int DayInYear(void)
Definition: Calendar.h:58
Definition: FI_SugarBeet.h:43
Definition: FI_StarchPotato.h:37
void SetMConstants(int a, int c)
Definition: Elements.h:408
FarmEvent * m_ev
Definition: Farm.h:500
Definition: MapErrorMsg.h:34
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
virtual bool FP_NPKS(LE *a_field, double a_user, int a_days)
Apply NPKS fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:630