1 | /* |
2 | Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com> |
3 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | */ |
9 | |
10 | #ifndef SPRITE_H |
11 | #define SPRITE_H |
12 | |
13 | #include <QPointF> |
14 | #include "spritefwd.h" |
15 | |
16 | class Sprite : public KShared |
17 | { |
18 | public: |
19 | virtual ~Sprite() { } |
20 | virtual qreal opacityF() const = 0; |
21 | virtual void setOpacityF(qreal opacity) = 0; |
22 | virtual QPointF position() const = 0; |
23 | virtual void setPosition(const QPointF& pos) = 0; |
24 | virtual QPointF velocity() const = 0; |
25 | virtual void setVelocity(const QPointF& vel) = 0; |
26 | }; |
27 | |
28 | |
29 | #endif // SPRITE_H |
30 | |