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.
31 #define FBeet_BASE 1800
33 #define FB_DID_HARROW m_field->m_user[0]
34 #define FB_DID_NPKS_ONE m_field->m_user[1]
35 #define FB_DID_SLURRY m_field->m_user[2]
36 #define FB_SOW_DATE m_field->m_user[3]
38 #define FB_DID_ROW_TWO m_field->m_user[0]
39 #define FB_DID_INSECT_ONE m_field->m_user[1]
40 #define FB_DID_NPKS_TWO m_field->m_user[2]
41 #define FB_DID_WATER_ONE m_field->m_user[3]
42 #define FB_TRULY_DID_WATER_ONE m_field->m_user[4]
43 #define FB_DECIDE_TO_HERB m_field->m_user[5]
44 #define FB_DECIDE_TO_FI m_field->m_user[6]
121 #endif // FodderBeet_h
int GetMDates(int a, int b)
Definition: Elements.h:405
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
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
#define FB_DID_WATER_ONE
Definition: FodderBeet.h:41
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
Definition: FodderBeet.h:67
Definition: FodderBeet.h:65
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
int GetMConstants(int a)
Definition: Elements.h:407
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
int GetYearNumber(void)
Definition: Calendar.h:72
bool m_first_year
Definition: Farm.h:386
Definition: FodderBeet.h:62
Definition: FodderBeet.h:47
Definition: FodderBeet.h:48
class Calendar * g_date
Definition: Calendar.cpp:37
Definition: FodderBeet.h:63
Definition: LandscapeFarmingEnums.h:1006
#define FB_SOW_DATE
Definition: FodderBeet.h:36
Definition: FodderBeet.h:68
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 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
double value() const
Definition: Configurator.h:142
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Definition: FodderBeet.h:50
int m_base_elements_no
Definition: Farm.h:505
#define FB_DID_SLURRY
Definition: FodderBeet.h:35
Definition: FodderBeet.h:58
int m_first_date
Definition: Farm.h:501
#define FB_DECIDE_TO_FI
Definition: FodderBeet.h:44
int m_startday
Definition: Farm.h:385
virtual bool FA_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:982
The base class for all crops.
Definition: Farm.h:495
CfgFloat cfg_fungi_app_prop1
Definition: FodderBeet.h:64
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Definition: FodderBeet.h:73
CfgFloat cfg_greg_app_prop
Definition: FodderBeet.h:61
CfgFloat cfg_ins_app_prop1
virtual double Prob_multiplier()
Definition: Farm.h:778
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
#define FB_DID_NPKS_TWO
Definition: FodderBeet.h:40
long Date(void)
Definition: Calendar.h:57
#define FB_DID_NPKS_ONE
Definition: FodderBeet.h:34
Definition: LandscapeFarmingEnums.h:1008
Definition: FodderBeet.h:59
Definition: LandscapeFarmingEnums.h:1003
void SetVegPatchy(bool p)
Definition: Elements.h:229
Definition: FodderBeet.h:56
Definition: LandscapeFarmingEnums.h:1011
#define FB_DID_INSECT_ONE
Definition: FodderBeet.h:39
long OldDays(void)
Definition: Calendar.h:60
void SetUpFarmCategoryInformation()
Definition: FodderBeet.h:82
Definition: FodderBeet.h:53
Definition: FodderBeet.h:66
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: FodderBeet.cpp:37
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
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
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
virtual bool RowCultivation(LE *a_field, double a_user, int a_days)
Carry out a harrowing between crop rows on a_field.
Definition: FarmFuncs.cpp:1183
Definition: LandscapeFarmingEnums.h:696
FBToDo
Definition: FodderBeet.h:46
Definition: FodderBeet.h:49
#define FBeet_BASE
Definition: FodderBeet.h:31
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
#define FB_TRULY_DID_WATER_ONE
Definition: FodderBeet.h:42
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Definition: FodderBeet.h:55
Definition: FodderBeet.h:51
The base class for all farm types.
Definition: Farm.h:755
#define FB_DID_HARROW
Definition: FodderBeet.h:33
Double configurator entry class.
Definition: Configurator.h:126
Definition: LandscapeFarmingEnums.h:1012
#define FB_DECIDE_TO_HERB
Definition: FodderBeet.h:43
FodderBeet(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: FodderBeet.h:77
Definition: FodderBeet.h:52
int DayInYear(void)
Definition: Calendar.h:58
Definition: FodderBeet.h:57
Definition: FodderBeet.h:60
Definition: FodderBeet.h:54
#define FB_DID_ROW_TWO
Definition: FodderBeet.h:38
void SetMConstants(int a, int c)
Definition: Elements.h:408
void ChooseNextCrop(int a_no_dates)
Chooses the next crop to grow in a field.
Definition: Farm.cpp:756
FarmEvent * m_ev
Definition: Farm.h:500
Definition: MapErrorMsg.h:34
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
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
CfgFloat cfg_herbi_app_prop