]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/tracktype.h
BasicLoader is now called ObjectLoader
[r2c2.git] / source / libr2c2 / tracktype.h
index f285036f905b236c8ac894e6022d1961e195ca5f..1b1c78ce998de86b736d252774643bce2346bfba 100644 (file)
@@ -1,14 +1,7 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2010  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef LIBR2C2_TRACKTYPE_H_
 #define LIBR2C2_TRACKTYPE_H_
 
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 #include "articlenumber.h"
 #include "geometry.h"
 #include "trackpart.h"
@@ -27,7 +20,7 @@ public:
                Endpoint(float, float, float, unsigned);
        };
 
-       class Loader: public Msp::DataFile::BasicLoader<TrackType>
+       class Loader: public Msp::DataFile::ObjectLoader<TrackType>
        {
        private:
                bool state_bits_set;
@@ -68,6 +61,7 @@ public:
        const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
        const Endpoint &get_endpoint(unsigned) const;
        TrackPoint get_point(unsigned, unsigned, float) const;
+       bool collide_ray(const Vector &, const Vector &, float) const;
 
 private:
        void collect_endpoints();