return get_point(front.get_point().pos, back.get_point().pos, ratio);
}
+unsigned Vehicle::get_n_link_slots() const
+{
+ return 2;
+}
+
+Vehicle *Vehicle::get_link(unsigned i) const
+{
+ if(i>=2)
+ throw out_of_range("Vehicle::get_link");
+
+ return (i==0 ? prev : next);
+}
+
+int Vehicle::get_link_slot(const Object &other) const
+{
+ if(&other==prev)
+ return 0;
+ else if(&other==next)
+ return 1;
+ else
+ return -1;
+}
+
Vehicle::Axle::Axle(const VehicleType::Axle &t):
type(&t),