]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/vehicletype.h
Also store gauge in VehicleType
[r2c2.git] / source / libr2c2 / vehicletype.h
index e49a48fb19ea3c0b9fad7361ca8b39fa0b08b2cf..789aeb3e59e7a6e8de0bce6c4b681573c19ff092 100644 (file)
@@ -25,6 +25,7 @@ public:
                void axle();
                void bogie();
                void function(unsigned, const std::string &);
+               void gauge(float);
                void height(float);
                void length(float);
                void mirror_rods();
@@ -166,6 +167,7 @@ private:
        bool locomotive;
        FunctionMap functions;
        bool swap_direction;
+       float gauge;
        float length;
        float width;
        float height;
@@ -184,6 +186,7 @@ public:
        unsigned get_max_function() const;
        const FunctionMap &get_functions() const { return functions; }
        bool get_swap_direction() const { return swap_direction; }
+       float get_gauge() const { return gauge; }
        float get_length() const { return length; }
        float get_width() const { return width; }
        float get_height() const { return height; }