#ifndef LEVELOBJECT_H_ #define LEVELOBJECT_H_ #include "Object.h" #include "Vertex.h" #include class LevelObject : public Object { private: LevelObject *parent; public: LevelObject() : parent(NULL) {} LevelObject(LevelObject *p) : parent(p) {} virtual ~LevelObject() {} LevelObject* getParent() const { return parent; } virtual std::vector > getChildren() { return std::vector >(); } virtual bool hit(const Vertex &v, float scale) const = 0; virtual int getPriority() const {return 0;} virtual void move(float x, float y) {} virtual void rotate(Vertex m, float a) {} }; #endif /*LEVELOBJECT_H_*/