File indexing completed on 2022-10-04 14:29:26

0001 /*
0002     SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef SPRITE_H
0008 #define SPRITE_H
0009 
0010 #include <QPointF>
0011 #include "spritefwd.h"
0012 
0013 class Sprite : public QSharedData
0014 {
0015 public:
0016     virtual ~Sprite() { }
0017     virtual qreal opacityF() const = 0;
0018     virtual void setOpacityF(qreal opacity) = 0;
0019     virtual QPointF position() const = 0;
0020     virtual void setPosition(const QPointF& pos) = 0;
0021     virtual QPointF velocity() const = 0;
0022     virtual void setVelocity(const QPointF& vel) = 0;
0023 };
0024 
0025     
0026 #endif // SPRITE_H