File indexing completed on 2022-09-27 12:31:12

0001 /*
0002     SPDX-FileCopyrightText: 2003-2008 Cies Breijs <cies AT kde DOT nl>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef _SPRITE_H_
0008 #define _SPRITE_H_
0009 
0010 #include <QGraphicsSvgItem>
0011 
0012 
0013 class Sprite : public QGraphicsSvgItem
0014 {
0015     Q_OBJECT
0016 
0017     public:
0018         Sprite();
0019 
0020         double angle() const { return m_angle; }
0021 
0022         void setAngle(double degrees);
0023         void setSpriteSize(int pixels);
0024 
0025     private:
0026         double m_angle;
0027         double m_speed;
0028 };
0029 
0030 #endif  // _SPRITE_H_