File indexing completed on 2024-05-12 05:46:36

0001 /*
0002     Copyright (C) 2003-2008 Cies Breijs <cies AT kde DOT nl>
0003 
0004     This program is free software; you can redistribute it and/or
0005     modify it under the terms of the GNU General Public
0006     License as published by the Free Software Foundation; either
0007     version 2 of the License, or (at your option) any later version.
0008 
0009     This program is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012     GNU General Public License for more details.
0013 
0014     You should have received a copy of the GNU General Public
0015     License along with this program; if not, write to the Free
0016     Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017     Boston, MA 02110-1301, USA.
0018 */
0019 
0020 #ifndef _SPRITE_H_
0021 #define _SPRITE_H_
0022 
0023 #include <QGraphicsSvgItem>
0024 
0025 
0026 class Sprite : public QGraphicsSvgItem
0027 {
0028     Q_OBJECT
0029 
0030     public:
0031         Sprite();
0032 
0033         double angle() const { return m_angle; }
0034 
0035         void setAngle(double degrees);
0036         void setSpriteSize(int pixels);
0037 
0038     private:
0039         double m_angle;
0040         double m_speed;
0041 };
0042 
0043 #endif  // _SPRITE_H_