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
skylarks_toletov.cpp File Reference

Functions

bool not_nest_friendly (int x, int y)
 

Variables

Landscapeg_land
 
int HQualityBareEarth
 
int PatchyPremium
 
int HQualityHedge
 
int HQualityTall2
 
int HQualityHedgeScrub
 
int HQualityTallVeg
 
int HQualityTall
 
int HQualityMetalRoad
 
int HQualityWater
 
CfgInt cfg_SkTramlinesPremium
 
CfgFloat cfg_SkScrapesPremiumII
 
double DensityScore []
 
double HeightScore []
 

Function Documentation

◆ not_nest_friendly()

bool not_nest_friendly ( int  x,
int  y 
)
24 {
25 
26  /* NEW PROPOSED CODE */
27  /*
28  * "High" landscape elements are not friendly for nesting ( return thus TRUE )
29  * To double check if any exceptions.
30  */
31 
32  // return (g_land->SupplyLEHigh(x, y));
33 
34  /* OLD CODE */
36 
37  if (g_land->SupplyAttIsForest(x, y))
38  return true;
39 
40  switch (ele) {
41  case tole_Hedges:
42  //case tole_HedgeBank: // ***CJT*** testing with and without this, h desigination to exe
43  case tole_StoneWall: // 15
44  case tole_Fence: //225
45  case tole_Building: // 5
46  case tole_Garden: // 10
47  case tole_ActivePit: // 115
48  case tole_PlantNursery:
49  case tole_WindTurbine:
50  case tole_Pylon:
51  case tole_Pipeline:
52  //Below added by Jordan 16/11/2023
53  case tole_AmenityGrass:
54  case tole_Canal:
55  case tole_Carpark:
57  case tole_FishFarm:
58  case tole_Freshwater:
59  case tole_LargeRoad:
60  case tole_MetalledPath:
61  case tole_Missing:
62  case tole_Pond:
63  case tole_Portarea:
64  case tole_Railway:
65  case tole_RefuseSite:
66  case tole_River:
67  case tole_Saltwater:
68  case tole_SmallRoad:
69  case tole_Stream:
70  case tole_Track:
71  case tole_UrbanNoVeg:
72  case tole_UrbanPark:
73  case tole_UrbanVeg:
76  case tole_EnergyCrop:
77  case tole_OEnergyCrop:
78  case tole_OBushFruit:
79  case tole_FarmForest:
80  case tole_OFarmForest:
83  case tole_ForestAisle:
84  case tole_OliveGrove:
85  case tole_BushFruit:
86  case tole_Orchard:
87  case tole_OOrchard:
88  case tole_OrchardBand:
89  case tole_YoungForest:
93 
94  return true;
95  default:
96  break;
97  }
98 
99  return false;
100 
101 }

References g_land, Landscape::SupplyAttIsForest(), Landscape::SupplyElementType(), tole_ActivePit, tole_AlmondPlantation, tole_AmenityGrass, tole_Building, tole_BuiltUpWithParkland, tole_BushFruit, tole_Canal, tole_Carpark, tole_EnergyCrop, tole_FarmFeedingGround, tole_FarmForest, tole_FarmYoungForest, tole_Fence, tole_FishFarm, tole_ForestAisle, tole_Freshwater, tole_Garden, tole_Hedges, tole_LargeRoad, tole_MetalledPath, tole_Missing, tole_OBushFruit, tole_OEnergyCrop, tole_OFarmForest, tole_OFarmYoungForest, tole_OliveGrove, tole_OOrchard, tole_Orchard, tole_OrchardBand, tole_Pipeline, tole_PlantNursery, tole_Pond, tole_Portarea, tole_Pylon, tole_Railway, tole_RefuseSite, tole_River, tole_Saltwater, tole_SmallRoad, tole_StoneWall, tole_Stream, tole_Track, tole_UrbanNoVeg, tole_UrbanPark, tole_UrbanVeg, tole_WalnutPlantation, tole_WindTurbine, tole_WoodlandMargin, tole_WoodyEnergyCrop, and tole_YoungForest.

Referenced by skTTerritory::TestNestPossibility().

Variable Documentation

◆ cfg_SkScrapesPremiumII

CfgFloat cfg_SkScrapesPremiumII

◆ cfg_SkTramlinesPremium

CfgInt cfg_SkTramlinesPremium

◆ DensityScore

◆ g_land

◆ HeightScore

◆ HQualityBareEarth

◆ HQualityHedge

◆ HQualityHedgeScrub

◆ HQualityMetalRoad

◆ HQualityTall

◆ HQualityTall2

◆ HQualityTallVeg

◆ HQualityWater

◆ PatchyPremium

tole_Pylon
Definition: LandscapeFarmingEnums.h:118
tole_Portarea
Definition: LandscapeFarmingEnums.h:132
Landscape::SupplyElementType
TTypesOfLandscapeElement SupplyElementType(int a_polyref)
Returns the landscape type of the polygon using the polygon reference number a_polyref or coordinates...
Definition: Landscape.h:1732
tole_Missing
Definition: LandscapeFarmingEnums.h:181
tole_AmenityGrass
Definition: LandscapeFarmingEnums.h:98
tole_StoneWall
Definition: LandscapeFarmingEnums.h:78
tole_Hedges
Definition: LandscapeFarmingEnums.h:59
tole_Carpark
Definition: LandscapeFarmingEnums.h:107
tole_OrchardBand
Definition: LandscapeFarmingEnums.h:95
tole_MetalledPath
Definition: LandscapeFarmingEnums.h:106
tole_OOrchard
Definition: LandscapeFarmingEnums.h:153
tole_WindTurbine
Definition: LandscapeFarmingEnums.h:119
tole_WalnutPlantation
Definition: LandscapeFarmingEnums.h:169
tole_OEnergyCrop
Definition: LandscapeFarmingEnums.h:159
tole_SmallRoad
Definition: LandscapeFarmingEnums.h:82
tole_BuiltUpWithParkland
Definition: LandscapeFarmingEnums.h:102
g_land
Landscape * g_land
Definition: skylarks_all.cpp:44
tole_UrbanNoVeg
Definition: LandscapeFarmingEnums.h:100
tole_AlmondPlantation
Definition: LandscapeFarmingEnums.h:168
tole_FishFarm
Definition: LandscapeFarmingEnums.h:124
TTypesOfLandscapeElement
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
tole_Railway
Definition: LandscapeFarmingEnums.h:61
tole_OliveGrove
Definition: LandscapeFarmingEnums.h:149
tole_Pond
Definition: LandscapeFarmingEnums.h:123
tole_Building
Definition: LandscapeFarmingEnums.h:84
tole_ForestAisle
Definition: LandscapeFarmingEnums.h:152
tole_OFarmYoungForest
Definition: LandscapeFarmingEnums.h:167
tole_UrbanPark
Definition: LandscapeFarmingEnums.h:101
tole_ActivePit
Definition: LandscapeFarmingEnums.h:85
tole_OFarmForest
Definition: LandscapeFarmingEnums.h:161
tole_RefuseSite
Definition: LandscapeFarmingEnums.h:129
tole_FarmYoungForest
Definition: LandscapeFarmingEnums.h:166
tole_Track
Definition: LandscapeFarmingEnums.h:81
tole_OBushFruit
Definition: LandscapeFarmingEnums.h:155
tole_EnergyCrop
Definition: LandscapeFarmingEnums.h:158
tole_Canal
Definition: LandscapeFarmingEnums.h:128
tole_Pipeline
Definition: LandscapeFarmingEnums.h:134
tole_LargeRoad
Definition: LandscapeFarmingEnums.h:83
tole_Freshwater
Definition: LandscapeFarmingEnums.h:86
tole_YoungForest
Definition: LandscapeFarmingEnums.h:77
tole_Stream
Definition: LandscapeFarmingEnums.h:111
tole_Saltwater
Definition: LandscapeFarmingEnums.h:88
tole_River
Definition: LandscapeFarmingEnums.h:87
tole_Orchard
Definition: LandscapeFarmingEnums.h:93
Landscape::SupplyAttIsForest
bool SupplyAttIsForest(int a_x, int a_y)
Returns whether a polygon at coordinates a_x, a_y has the attribute Forest set.
Definition: Landscape.h:881
tole_UrbanVeg
Definition: LandscapeFarmingEnums.h:125
tole_FarmForest
Definition: LandscapeFarmingEnums.h:160
tole_BushFruit
Definition: LandscapeFarmingEnums.h:154
tole_WoodlandMargin
Definition: LandscapeFarmingEnums.h:120
tole_PlantNursery
Definition: LandscapeFarmingEnums.h:117
tole_Garden
Definition: LandscapeFarmingEnums.h:80
tole_Fence
Definition: LandscapeFarmingEnums.h:79
tole_WoodyEnergyCrop
Definition: LandscapeFarmingEnums.h:116
tole_FarmFeedingGround
Definition: LandscapeFarmingEnums.h:173