diff options
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) {} |