namespace R2C2 {
-VehicleType::VehicleType(const ArticleNumber &an):
- ObjectType(an),
+VehicleType::VehicleType():
locomotive(false),
swap_direction(false),
+ gauge(1.524),
length(0),
width(0),
height(0),
add("axle", &Loader::axle);
add("bogie", &Loader::bogie);
add("function", &Loader::function);
+ add("gauge", &Loader::gauge);
add("height", &Loader::height);
add("length", &Loader::length);
add("locomotive", &VehicleType::locomotive);
obj.functions[i] = f;
}
+void VehicleType::Loader::gauge(float g)
+{
+ obj.gauge = g/1000;
+}
+
void VehicleType::Loader::height(float h)
{
obj.height = h/1000;