3 This file is part of R²C²
4 Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBR2C2_TRACKPART_H_
9 #define LIBR2C2_TRACKPART_H_
11 #include <msp/datafile/loader.h>
19 class Loader: public Msp::DataFile::BasicLoader<TrackPart>
24 virtual void finish();
25 void start(float, float, float);
40 float get_length() const;
41 bool is_curved() const { return radius; }
42 TrackPoint get_point(float) const;
43 unsigned get_path() const { return path; }
44 bool is_dead_end() const { return dead_end; }
45 void check_link(TrackPart &);
46 TrackPart *get_link(unsigned) const;