Table of Contents

 

PlayAnimation

 

Purpose

Either plays or stops an animation

 

Protoype

void CTileMngr::PlayAnimation (bool b_onoff)
 

Parameters

onoff whether to play (TRUE) or stop (FALSE) the animation
 

Description

This function controls playback of a tile's animation. If you want to play the animation, then pass in TRUE, otherwise pass in FALSE to stop it.

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

 

Use

CTileMngr tile_mngr;
// start animation
tile_mngr.PlayAnimation(true);
// stop it
tile_mngr.PlayAnimation(false);
 

Prev: MoveWindow