/***************************************************************************
                          bulletwidg.h  -  description
                             -------------------
    begin                : Tue Apr 4 2000
    copyright            : (C) 2000 by Frank von Daak
    email                : frank.fun@kpage.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
/***************************************************************************
                          bulletwidg.h  -  description
                             -------------------
    begin                : Sat Apr 1 2000
    copyright            : (C) 2000 by Frank von Daak
    email                : frank.fun@kpage.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef BULLETWIDG_H
#define BULLETWIDG_H

#include <kapp.h>

#include <qwidget.h>
#include <QwSpriteField.h>

#include "sprites.h"

/**
  *@author Frank von Daak
  */

class BulletWidg : public QWidget  {
   Q_OBJECT
public: 
	BulletWidg(QWidget *parent=0, const char *name=0);
	~BulletWidg();
	
	void addBullets(int);
	void removeBullets(int);
	
	bool ready;

private:
	QwSpriteField *bulletField;
	QwSpriteFieldView *bulletView;

    QList<QwRealMobileSprite> bullets;
    QwSpritePixmapSequence *bulletImg;

	void timerEvent(QTimerEvent*);
};

#endif
