ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
Elements.h File Reference
#include <fstream>

Go to the source code of this file.

Classes

class  LE_TypeClass
 
class  LE
 
struct  CropActualValues
 Struct for storing actual data on crop type, area of a field it is grown in, biomass at harvest, numbers of pesticide applications and missed pesticide applications. More...
 
class  VegElement
 
class  Field
 
class  PermanentSetaside
 
class  Hedges
 
class  HedgeBank
 
class  BeetleBank
 
class  FlowerStrip
 Element class for flower strips. More...
 
class  FlowerStripWithRotation
 Element class for flower strips. More...
 
class  FieldBoundary
 Element class for field boudaries. More...
 
class  RoadsideVerge
 
class  WaterBufferZone
 
class  NaturalGrass
 
class  UnsprayedFieldMargin
 
class  ForestElement
 
class  PastureElement
 
class  Orchard
 
class  OrchardBand
 
class  MownGrassStrip
 
class  NonVegElement
 
class  Pond
 Ponds are defined as freshwater bodies between 25m2 and 5000m2. For newts the effective size is limited to 400m2. More...
 
class  LargeRoad
 
class  SmallRoad
 

Macros

#define FMDEBUG
 
#define LE_SIG_NO_FUNGICIDE   0x0001
 
#define LE_SIG_NO_INSECTICIDE   0x0002
 
#define LE_SIG_NO_SYNG_INSECT   0x0004
 
#define LE_SIG_NO_GROWTH_REG   0x0008
 
#define LE_SIG_NO_MOLLUSC   0x0010
 
#define LE_SIG_NO_HERBICIDE   0x0020
 
#define EL_MAX_USERSPACE   10
 
#define EL_TRAMLINE_DECAYTIME   (g_el_tramline_decaytime_days.value())
 
#define EL_HERBICIDE_DELAYTIME   (g_el_herbicide_delaytime_days.value())
 
#define EL_STRIGLING_DELAYTIME   (g_el_strigling_delaytime_days.value())
 

Typedefs

typedef unsigned int LE_Signal
 

Functions

static CfgBool l_el_read_bug_percentage_file ("ELEM_READ_BUG_PERCENTAGE_FILE", CFG_CUSTOM, false)
 
static CfgStr l_el_bug_percentage_file ("ELEM_BUG_PERCENTAGE_FILE", CFG_CUSTOM,"bugpercents.txt")
 
LE_TypeClassCreateLETypeClass ()
 

Variables

CfgInt g_el_tramline_decaytime_days
 
CfgInt g_el_herbicide_delaytime_days
 
CfgInt g_el_strigling_delaytime_days
 
CfgInt cfg_farm_cattle_grazing_lvl_rot
 
CfgInt cfg_farm_cattle_grazing_lvl_pasture
 
CfgInt cfg_farm_cattle_grazing_lvl_lowyield
 
CfgInt cfg_farm_cattle_grazing_lvl_tussocky
 
class LE_TypeClassg_letype
 

Macro Definition Documentation

◆ EL_HERBICIDE_DELAYTIME

#define EL_HERBICIDE_DELAYTIME   (g_el_herbicide_delaytime_days.value())

◆ EL_MAX_USERSPACE

#define EL_MAX_USERSPACE   10

◆ EL_STRIGLING_DELAYTIME

#define EL_STRIGLING_DELAYTIME   (g_el_strigling_delaytime_days.value())

◆ EL_TRAMLINE_DECAYTIME

#define EL_TRAMLINE_DECAYTIME   (g_el_tramline_decaytime_days.value())

◆ FMDEBUG

#define FMDEBUG

◆ LE_SIG_NO_FUNGICIDE

#define LE_SIG_NO_FUNGICIDE   0x0001

◆ LE_SIG_NO_GROWTH_REG

#define LE_SIG_NO_GROWTH_REG   0x0008

◆ LE_SIG_NO_HERBICIDE

#define LE_SIG_NO_HERBICIDE   0x0020

◆ LE_SIG_NO_INSECTICIDE

#define LE_SIG_NO_INSECTICIDE   0x0002

◆ LE_SIG_NO_MOLLUSC

#define LE_SIG_NO_MOLLUSC   0x0010

◆ LE_SIG_NO_SYNG_INSECT

#define LE_SIG_NO_SYNG_INSECT   0x0004

Typedef Documentation

◆ LE_Signal

typedef unsigned int LE_Signal

Function Documentation

◆ CreateLETypeClass()

LE_TypeClass* CreateLETypeClass ( )
3435 {
3436  if (g_letype == NULL)
3437  {
3438  g_letype = new LE_TypeClass;
3439  }
3440 
3441  return g_letype;
3442 }

References g_letype.

Referenced by main().

◆ l_el_bug_percentage_file()

static CfgStr l_el_bug_percentage_file ( "ELEM_BUG_PERCENTAGE_FILE"  ,
CFG_CUSTOM  ,
"bugpercents.txt"   
)
static

◆ l_el_read_bug_percentage_file()

static CfgBool l_el_read_bug_percentage_file ( "ELEM_READ_BUG_PERCENTAGE_FILE"  ,
CFG_CUSTOM  ,
false   
)
static

Referenced by VegElement::VegElement().

Variable Documentation

◆ cfg_farm_cattle_grazing_lvl_lowyield

CfgInt cfg_farm_cattle_grazing_lvl_lowyield

Referenced by VegElement::SetCropType().

◆ cfg_farm_cattle_grazing_lvl_pasture

CfgInt cfg_farm_cattle_grazing_lvl_pasture

Referenced by VegElement::SetCropType().

◆ cfg_farm_cattle_grazing_lvl_rot

CfgInt cfg_farm_cattle_grazing_lvl_rot

Referenced by VegElement::SetCropType().

◆ cfg_farm_cattle_grazing_lvl_tussocky

CfgInt cfg_farm_cattle_grazing_lvl_tussocky

Referenced by VegElement::SetCropType().

◆ g_el_herbicide_delaytime_days

CfgInt g_el_herbicide_delaytime_days

◆ g_el_strigling_delaytime_days

CfgInt g_el_strigling_delaytime_days

◆ g_el_tramline_decaytime_days

CfgInt g_el_tramline_decaytime_days

◆ g_letype

LE_TypeClass
Definition: Elements.h:72
g_letype
class LE_TypeClass * g_letype
Definition: Elements.cpp:806