]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/vehicletype.h
Implement train priority system
[r2c2.git] / source / libmarklin / vehicletype.h
index 01e678b05ee17c077dabb0895a6f3bd03bbf13aa..65f69e766d54ca66d48d3bb9000a6f68ab2bad22 100644 (file)
@@ -41,6 +41,8 @@ public:
                float position;
                float wheel_dia;
                bool powered;
+
+               Axle();
        };
 
        struct Bogie
@@ -56,6 +58,10 @@ public:
 
                float position;
                std::vector<Axle> axles;
+               std::string object;
+               bool rotate_object;
+
+               Bogie();
        };
 
 private:
@@ -66,6 +72,7 @@ private:
        float height;
        std::vector<Axle> axles;
        std::vector<Bogie> bogies;
+       std::string object;
 
 public:
        VehicleType(unsigned);
@@ -78,6 +85,7 @@ public:
        float get_height() const { return height; }
        const std::vector<Axle> &get_axles() const { return axles; }
        const std::vector<Bogie> &get_bogies() const { return bogies; }
+       const std::string &get_object() const { return object; }
 };
 
 } // namespace Marklin