|
|
/*************************************************************************** gfxpool.h - description ------------------- begin : Wed Jul 18 2001 copyright : (C) 2001 by Gaël de Chalendar email : Gael.de.Chalendar@libertysurf.fr ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #define KDE_NO_COMPAT #ifndef GFXPOOL_H #define GFXPOOL_H #include#include /** * This class has 2 different roles (and therefore should be cut in two parts) * - it stores the big image (the pool) that contains all the sprites images * and the background; * - it is the canvas where the background and the animated sprites are set up * All the code that manages this part of the class is those inherited from * QCanvas */ class GfxPool : public QCanvas { Q_OBJECT public: /** * Loads and initializes the pool of bitmaps; creates the * uneLArgeur x uneHauteur canvas */ GfxPool(int uneLargeur, int uneHauteur); /** * releases the memory, particularly the image used for the pool */ ~GfxPool(); /** * Returns the subimage of the pool defined by the coordinates arguments */ QImage copy(int x, int y, int w, int h); /** * Returns the subimage of the pool corresponding to the 1024x768 * background */ QImage copyMain(void); private: /** * The filename of the pool. Is is found in the standard directories. */ QString poolName; /** * The image that stores the pool */ QImage* bitmapInfo; }; #endif // GFXPOOL_H
Generated by: gael on noirdes.limsi.fr on Sat Aug 31 15:31:50 2002, using kdoc 2.0a53. |