1 #ifndef LIBR2C2_TRACKPART_H_
2 #define LIBR2C2_TRACKPART_H_
4 #include <msp/datafile/objectloader.h>
12 class Loader: public Msp::DataFile::ObjectLoader<TrackPart>
17 virtual void finish();
18 void start(float, float, float);
33 float get_length() const;
34 bool is_curved() const { return radius; }
35 TrackPoint get_point(float) const;
36 TrackPoint get_nearest_point(const Vector &) const;
37 unsigned get_path() const { return path; }
38 bool is_dead_end() const { return dead_end; }
39 void check_link(TrackPart &);
40 TrackPart *get_link(unsigned) const;
41 bool collide_ray(const Vector &, const Vector &, float) const;