CImageManager
Up

Purpose:
Manages the loading and storing of game objects' images. Handles the animated game objects.
Methods:
void LoadImages() - Loads images from resource into the applications memory.
HIMAGE GetImage (ImageType) - Return handle to image of given type.
void UpdateImage (HIMAGE &, BOOL &) - Update the state of the given image.
void DisplayImage (HIMAGE &himg, CDIB *pDstDIB, CPoint &pos) - Return the DIB of the image.
void RotateImage (HIMAGE &, UINT uAngle) - Update the rotating objects' image.
BOOL ImageEnded (HIMAGE &) - Return TRUE if animated image has stopped updating.
CDIB *ExposeDIB (HIMAGE &) - Expose the DIB of an image.
void GetImageSize (HIMAGE &, CSize &) - Get the size of the image.
void GetImageOffset (HIMAGE &, CPoint &) - Get the offset of the actual image inside the entire DIB.
CBitMask *ExposeBitMask(HIMAGE &) - Expose the bit mask of the image.
void SetOverlay (HIMAGE &, HIMAGE *p = NULL) - Set an overlay image on top of the given image.
HIMAGE *GetOverlay(HIMAGE &) - Gets the overlay image.
void ReloadMap() - Reload map image from file (for a new game session).
The following two functions are for memory consumption purposes:
void LoadGameOverBitmaps ();
void ReleaseGameOverBitmaps ();
 

Back Home Up Next