Table of Contents

 
TileVisible
 

Purpose

Checks to see whether a tile is being drawn

 

Protoype

bool CTileMngr::TileVisible (int i_tile_x, int i_tile_y)
 

Parameters

tile_x the x location of the tile
tile_y the y location of the tile
 

Description

This function checks a given tile and determines whether or not it is being drawn or if it has been scrolled off the screen (or clip window). The function uses LockTileXY() so the x and y locations passed in do not have to be the exact location of a tile, but rather anywhere on the tile. If the tile is being drawn, the function returns TRUE, otherwise it returns FALSE.

 

Use

CTileMngr tile_mngr;
if (tile_mngr.TileVisible(200, 150))
    // tile is visible
 

Prev: StartUp
Next: UnloadMap