Source: ksirk/animspriteslist.h
|
|
|
|
/***************************************************************************
animspriteslist.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 ANIMSPRITESLIST_H
#define ANIMSPRITESLIST_H
#include
#include "animsprite.h"
class AnimSprite;
/**
* the AnimSpritesList is a list of AnimSprite-s with useful methods to
* do some actions on each the elements
*/
class AnimSpritesList : public QPtrList
{
// Q_OBJECT
public:
AnimSpritesList();
~AnimSpritesList();
bool isLastFrame( AnimSprite &);
/**
* repaint each sprite of the list
*/
void repaint(void);
/**
* use next frame for each sprite of the list
*/
void forEachNextFrame(void);
/**
* hide the sprites of the list, remove them from the list and call their
* destructors iff the liste is in auto-delete mode
*/
void hideAndRemoveAll(void);
/**
* return the first AnimSprite of the list that currently displays its last
* frame
*/
const AnimSprite *firstThatIsLastFrame(void);
} ;
#endif // ANIMSPRITESLIST_H
Generated by: gael on noirdes.limsi.u-psud.fr on Fri Jan 3 17:03:38 2003, using kdoc 2.0a53. |