summaryrefslogtreecommitdiffstats
path: root/LevelObject.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-15 23:44:03 +0100
committerneoraider <devnull@localhost>2008-02-15 23:44:03 +0100
commit77b187b8eba7598fb6154da5d3d62ad0920eac15 (patch)
treeaa5c147510fe6c6c8b0b8433380dafbf3d0d60a7 /LevelObject.h
parent0ea1d388651217697d49029820b02b4f002f1ac0 (diff)
downloadzoomedit-77b187b8eba7598fb6154da5d3d62ad0920eac15.tar
zoomedit-77b187b8eba7598fb6154da5d3d62ad0920eac15.zip
zoomedit: Changed some interfaces.
Diffstat (limited to 'LevelObject.h')
-rw-r--r--LevelObject.h6
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) {}