1 #ifndef LIBR2C2_TRACKPART_H_
2 #define LIBR2C2_TRACKPART_H_
4 #include <msp/datafile/loader.h>
12 class Loader: public Msp::DataFile::BasicLoader<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 unsigned get_path() const { return path; }
37 bool is_dead_end() const { return dead_end; }
38 void check_link(TrackPart &);
39 TrackPart *get_link(unsigned) const;
40 bool collide_ray(const Vector &, const Vector &, float) const;