X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibr2c2%2Fobject.h;h=33b99a1443acb3b2f7452c8236e91354ab5ed8a4;hb=0b75458245997b9df6da47cc4534341c8426084b;hp=8ce521ab5366df54375973e3db4715e11cc0c81e;hpb=b88d3630a0e3fdd763db018bbe5dbfe3180a95f2;p=r2c2.git diff --git a/source/libr2c2/object.h b/source/libr2c2/object.h index 8ce521a..33b99a1 100644 --- a/source/libr2c2/object.h +++ b/source/libr2c2/object.h @@ -37,6 +37,14 @@ protected: virtual SnapType get_default_snap_type_to(const Object &) const { return NO_SNAP; } public: + virtual unsigned get_n_link_slots() const { return 0; } + virtual Object *get_link(unsigned) const; + virtual int get_link_slot(const Object &) const { return -1; } + virtual bool link_to(Object &) { return false; } + virtual bool break_link(Object &); + virtual bool break_link(unsigned) { return false; } + virtual void break_links(); + virtual bool collide_ray(const Vector &, const Vector &) const = 0; };