-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#ifndef LIBR2C2_TRACK_H_
#define LIBR2C2_TRACK_H_
#include <list>
#include <set>
#include <sigc++/trackable.h>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include "geometry.h"
namespace R2C2 {
class Track: public sigc::trackable
{
public:
- class Loader: public Msp::DataFile::BasicLoader<Track>
+ class Loader: public Msp::DataFile::ObjectLoader<Track>
{
public:
Loader(Track &);
TrackPoint get_point(unsigned, unsigned, float) const;
TrackPoint get_point(unsigned, float) const;
+ bool collide_ray(const Vector &, const Vector &);
+
void save(std::list<Msp::DataFile::Statement> &) const;
private:
void turnout_event(unsigned, unsigned);