From c4aadd98230f3b9ab50398b715164ff874ea8a61 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 13 Feb 2008 21:06:01 +0000 Subject: zoomedit: Vertices are selectable now. --- LevelObject.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'LevelObject.h') 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 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 > 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(float a) {} -- cgit v1.2.3