GetTerrainID routine

TURBU

GetTerrainID routine

 

Returns the ID # of the map terrain at a certain square.

 

Syntax

 

function getTerrainID(x, y: word): word;

 

Description

 

This function is used to find the terrain type from the database of the lower tile on the map at grid position x,y.  If x,y is not a valid location, the function returns a value of 0.

 

Related topics

getEventID routine

This help file was created with the free trial version of HelpScribble.