Fixed coordinate bug.
[kgcqgv.git] / element.h
blob3d5306293a3785aca973b8bf11e408b009ec4e61
1 #ifndef ELEMENT_H
2 #define ELEMENT_H
4 #include "defs.h"
6 class Element {
7 QPointF m_position;
8 QPointF m_velocity;
10 ITEM* m_item;
11 public:
12 Element(SCENE* scene, const QPoint& pos);
13 ~Element();
15 QPointF position() const;
16 void setPosition(const QPointF& pos);
18 QPointF velocity() const;
19 void setVelocity(const QPointF& vel);
21 QPoint size() const;
24 #endif // ELEMENT_H