File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
57 int Get(
int a_x,
int a_y );
58 char*
GetID(
void ) {
return m_id; }
59 int* GetMagicP(
int a_x,
int a_y );
60 void Put(
int a_x,
int a_y,
int a_elem ) { m_map[ a_y * m_width + a_x ] = a_elem; }
64 int CellReplacementNeighbour(
int a_x,
int a_y,
int a_polyref);
66 bool MissingCellReplace(
int a_x,
int a_y,
bool a_fieldsonly);
68 bool MissingCellReplaceWrap(
int a_x,
int a_y,
bool a_fieldsonly);
70 void Init(
const char* a_mapfile,
Landscape * m_landscape);
77 return &m_map[ a_y * m_width + a_x ];
84 if (a_x<0 || a_x>=m_width ||
85 a_y<0 || a_y>=m_height ) {
94 return m_map[ a_y * m_width + a_x ];
char * GetID(void)
Definition: Rastermap.h:58
Definition: MapErrorMsg.h:37
Landscape * m_landscape
A pointer to the parent landscape class.
Definition: Rastermap.h:51
int MapHeight(void)
Definition: Rastermap.h:56
void WarnAddInfo(MapErrorState a_level, std::string a_add1, std::string a_add2)
Definition: MapErrorMsg.cpp:160
int Get(int a_x, int a_y)
Definition: Rastermap.h:82
Definition: LandscapeFarmingEnums.h:122
Definition: MapErrorMsg.h:35
~RasterMap(void)
Definition: Rastermap.cpp:147
void Put(int a_x, int a_y, int a_elem)
Definition: Rastermap.h:60
Definition: LandscapeFarmingEnums.h:68
int * GetMagicP(int a_x, int a_y)
Definition: Rastermap.h:75
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
int m_height
The height of the landscape.
Definition: Rastermap.h:49
Definition: LandscapeFarmingEnums.h:66
int * m_map
The raster of the landscape.
Definition: Rastermap.h:45
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
bool MissingCellReplace(int a_x, int a_y, bool a_fieldsonly)
A method for removing missing polygons.
Definition: Rastermap.cpp:201
Definition: LandscapeFarmingEnums.h:67
int m_width
The width of the landscape.
Definition: Rastermap.h:47
void Init(const char *a_mapfile, Landscape *m_landscape)
Definition: Rastermap.cpp:58
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Definition: LandscapeFarmingEnums.h:93
bool MissingCellReplaceWrap(int a_x, int a_y, bool a_fieldsonly)
A method for removing missing polygons - tests for edge conditions.
Definition: Rastermap.cpp:230
Definition: LandscapeFarmingEnums.h:65
int CellReplacementNeighbour(int a_x, int a_y, int a_polyref)
A method for helping remove tiny polygons.
Definition: Rastermap.cpp:153
Definition: LandscapeFarmingEnums.h:121
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
Definition: Rastermap.h:40
int MapWidth(void)
Definition: Rastermap.h:55
RasterMap(const char *a_mapfile, Landscape *m_landscape)
Definition: Rastermap.cpp:42
Definition: SubPopulation.h:48
Definition: MapErrorMsg.h:34
Definition: LandscapeFarmingEnums.h:69