Table of Contents

 
LockTileRC
 

Purpose

Sets the row,col of a tile once so that multiple calculations aren't needed

 

Protoype

void CTileMngr::LockTileRC (int i_row, int i_col, int i_layer)
 

Parameters

row the row of the tile to lock in the map
col the column of the tile to lock in the map
layer the layer the tile resides in
 

Description

This function locks a tile by storing its handle in a map data member. This greatly speeds up multiple operations done on a single tile since it only has to be extracted once from the map array. This lock function works by taking the row and column location of the map tile you wish to lock. You must also specify the proper layer the tile is on.

 

Use

CTileMngr tile_mngr;
tile_mngr.LockTileRC(3, 4, 2);
 

Prev: LoadMap