diff options
author | neoraider <devnull@localhost> | 2008-02-13 22:06:01 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-02-13 22:06:01 +0100 |
commit | c4aadd98230f3b9ab50398b715164ff874ea8a61 (patch) | |
tree | 8b6fcaf48fb0a7eb9af6fd1483659ab4d6e5c000 /LevelObject.h | |
parent | 16397f4474fbbe5f140a5e68b3bb6934170bf2e3 (diff) | |
download | zoomedit-c4aadd98230f3b9ab50398b715164ff874ea8a61.tar zoomedit-c4aadd98230f3b9ab50398b715164ff874ea8a61.zip |
zoomedit: Vertices are selectable now.
Diffstat (limited to 'LevelObject.h')
-rw-r--r-- | LevelObject.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/LevelObject.h b/LevelObject.h index 4cb56a4..005b3a9 100644 --- a/LevelObject.h +++ b/LevelObject.h @@ -3,14 +3,28 @@ #include "Object.h" #include "Vertex.h" +#include <list> class LevelObject : public Object { + private: + LevelObject *parent; + public: + LevelObject() : parent(NULL) {} + LevelObject(LevelObject *p) : parent(p) {} virtual ~LevelObject() {} - virtual bool hit(const Vertex &v) const = 0; - virtual int getPriority() const = 0; + LevelObject* getParent() const { + return parent; + } + + virtual std::vector<SharedPtr<LevelObject> > getChildren() { + return std::vector<SharedPtr<LevelObject> >(); + } + + 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(float a) {} |