/* $Id$
This file is part of R²C²
-Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
class ArticleNumber;
class Route;
+class SpeedQuantizer;
class Timetable;
class Vehicle;
class VehicleType;
void block(unsigned);
void block_hint(unsigned);
void name(const std::string &);
- void real_speed(unsigned, float, float);
+ void quantized_speed();
void route(const std::string &);
void timetable();
void vehicle(ArticleNumber);
RouteRef(const Route *, unsigned = 0);
};
- struct RealSpeed
- {
- float speed;
- float weight;
-
- RealSpeed();
- void add(float, float);
- };
-
typedef std::list<BlockIter> BlockList;
Layout &layout;
Msp::Time::TimeStamp last_entry_time;
float travel_dist;
bool pure_speed;
- std::vector<RealSpeed> real_speed;
+ SpeedQuantizer *speed_quantizer;
bool accurate_position;
float overshoot_dist;