]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/vehicletype.h
Add a maximum speed property for vehicle types
[r2c2.git] / source / libr2c2 / vehicletype.h
index a02791503e1ed700fee92f7bca0490e487c82fdf..e49a48fb19ea3c0b9fad7361ca8b39fa0b08b2cf 100644 (file)
@@ -175,6 +175,7 @@ private:
        RodArray rods;
        std::string object;
        bool rotate_object;
+       float max_speed;
 
 public:
        VehicleType(const ArticleNumber &);
@@ -198,6 +199,7 @@ public:
        float get_back_axle_offset() const;
        const std::string &get_object() const { return object; }
        bool get_rotate_object() const { return rotate_object; }
+       float get_maximum_speed() const { return max_speed; }
 };
 
 } // namespace R2C2