| Table of Contents | ||
|
|
||
| GetTileID | ||
|
Purpose Finds the ID of the tile, a number in relation to it's position on the map |
||
|
Protoype int CTileMngr::GetTileID () |
||
|
Description This function returns the ID of the tile. The tile ID is a unique number assigned to the tile based on its position in the map. IDs are given from left to right, top to bottom. So the ID of a tile located at 1, 4 in a 4X4 map would be 3, since tile IDs begin with 0.
|
||
|
Use CTileMngr tile_mngr; int i_id = tile_mngr.GetTileID(); |
||
|
|
||
|