X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fvehicle.h;h=b522b429125f1fecc3a65d92526c4f643a7da847;hb=f0aa8913aa1f4df37b87dcedbc257febb0e101a1;hp=f7965916d6a6d3d84bfcd3ca50c694e09cfacc16;hpb=dd05e8ed55a9072daaf18e4c63c3b66e386ba7f4;p=r2c2.git diff --git a/source/libr2c2/vehicle.h b/source/libr2c2/vehicle.h index f796591..b522b42 100644 --- a/source/libr2c2/vehicle.h +++ b/source/libr2c2/vehicle.h @@ -23,15 +23,6 @@ public: class Vehicle: public Object { public: - enum PlaceMode - { - CENTER, - FRONT_AXLE, - FRONT_BUFFER, - BACK_AXLE, - BACK_BUFFER - }; - struct Axle { const VehicleType::Axle *type; @@ -116,6 +107,8 @@ public: virtual unsigned get_n_link_slots() const; virtual Vehicle *get_link(unsigned) const; virtual int get_link_slot(const Object &) const; + + virtual bool collide_ray(const Ray &, float * = 0) const; }; } // namespace R2C2