Table of Contents

 
GetTileBlock
 

Purpose

Checks the current tile collision setting

 

Protoype

int CTileMngr::GetTileBlock ()
 

Description

This function returns the block setting for the locked tile. If a tile is blocked then the function will return BLOCKED, otherwise it will return UNBLOCKED. Tile blocking allows you to control whether or not game objects can pass over tiles (however the map itself will not prevent any game objects from passing over a blocked tile).

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

 

Use

CTileMngr tile_mngr;
int i_block = tile_mngr.GetTileBlock();
 

Prev: GetSprites
Next: GetTileID