Table of Contents

 
SetTileImage
 

Purpose

Sets the current image ID of the selected tile

 

Protoype

void CTileMngr::SetTileImage (int i_img_id)
 

Parameters

img_id the row of the tile
 

Description

This function sets a new tile ID and thus changes the image of the tile. The tile ID is merely the cell number of the image to use from the map's tile set.

NOTE: In order for the function to work you must have a tile locked with either LockTileRC() or LockTileXY()

 

Use

CTileMngr tile_mngr;
tile_mngr.SetTileImage(GRASS_TILE);
 

Prev: SetTileBlock
Next: ShutDown