00001 #ifndef MOVABLE_H 00002 #define MOVABLE_H 00003 00004 #include <QVector2D> 00005 00006 namespace Elve { 00007 00008 class Point; 00009 00010 class Movable 00011 { 00012 public: 00013 virtual void onStateChange(const QVector2D& pos, const QVector2D& speed) = 0; 00014 void setState(const QVector2D& pos, const QVector2D& speed); 00015 void setPoint(Point* m); 00016 Point* point(); 00017 private: 00018 Point* mPoint; 00019 }; 00020 00021 } 00022 #endif // MOVABLE_H