59 int Get(
int a_x,
int a_y );
60 char*
GetID(
void ) {
return m_id; }
61 int* GetMagicP(
int a_x,
int a_y );
62 void Put(
int a_x,
int a_y,
int a_elem ) { m_map[ a_y * m_width + a_x ] = a_elem; }
67 int CellReplacementNeighbour(
int a_x,
int a_y,
int a_polyref);
69 bool MissingCellReplace(
int a_x,
int a_y,
bool a_fieldsonly);
71 bool MissingCellReplaceWrap(
int a_x,
int a_y,
bool a_fieldsonly);
73 void Init1(
const char* a_mapfile,
Landscape * m_landscape);
74 void Init2(
const char* a_mapfile,
Landscape * m_landscape);
81 return &m_map[ a_y * m_width + a_x ];
87 if (a_x<0 || a_x>=m_width ||
88 a_y<0 || a_y>=m_height ) {
90 "RasterMap::Get(): Coordinates out of range!",
"" );
93 return m_map[ a_y * m_width + a_x ];
The landscape class containing all environmental and topographical data.
int * m_polymapping
m_polymapping is a mapping from polygon numbers into the list of landscape elements, m_elems. When using this it is important that it is the poly num and not the map index that is used in calling.
void Put(int a_x, int a_y, int a_elem)
int Get(int a_x, int a_y)
int * GetMagicP(int a_x, int a_y)
class MapErrorMsg * g_msg
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)