]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/object.h
Allow objects to override the shape specified in their type
[r2c2.git] / source / libr2c2 / object.h
index f8e895848f7ef17e17c59c1f535962a7a2dff12b..22937921d47a92190edb2d8abc76ca254b9a761b 100644 (file)
@@ -19,8 +19,9 @@ protected:
        Vector position;
        Angle rotation;
        Angle tilt;
+       Shape *shape;
 
-       Object(Layout &l): layout(l) { }
+       Object(Layout &);
 public:
        virtual ~Object() { }
 
@@ -51,6 +52,7 @@ public:
        virtual bool break_link(unsigned) { return false; }
        virtual void break_links();
 
+       const Shape *get_shape() const;
        virtual bool collide_ray(const Ray &) const;
        virtual BoundingBox get_bounding_box() const;
 };