diff options
author | neoraider <devnull@localhost> | 2008-02-15 23:44:03 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-02-15 23:44:03 +0100 |
commit | 77b187b8eba7598fb6154da5d3d62ad0920eac15 (patch) | |
tree | aa5c147510fe6c6c8b0b8433380dafbf3d0d60a7 /LevelObject.h | |
parent | 0ea1d388651217697d49029820b02b4f002f1ac0 (diff) | |
download | zoomedit-77b187b8eba7598fb6154da5d3d62ad0920eac15.tar zoomedit-77b187b8eba7598fb6154da5d3d62ad0920eac15.zip |
zoomedit: Changed some interfaces.
Diffstat (limited to 'LevelObject.h')
-rw-r--r-- | LevelObject.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LevelObject.h b/LevelObject.h index f3360e1..c774352 100644 --- a/LevelObject.h +++ b/LevelObject.h @@ -11,8 +11,7 @@ class LevelObject : public Object { LevelObject *parent; public: - LevelObject() : parent(NULL) {} - LevelObject(LevelObject *p) : parent(p) {} + LevelObject(LevelObject *p = NULL) : parent(p) {} virtual ~LevelObject() {} LevelObject* getParent() const { @@ -23,7 +22,8 @@ class LevelObject : public Object { return std::vector<SharedPtr<LevelObject> >(); } - virtual bool hit(const Vertex &v, float scale) const = 0; + virtual bool hit(const Vertex &v) const {return false;} + virtual bool hit(const Vertex &v, float scale) const {return hit(v);}; virtual int getPriority() const {return 0;} virtual void move(float x, float y) {} |