]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/vehicletype.h
Halt all trains in various unexpected situations
[r2c2.git] / source / libmarklin / vehicletype.h
index 6c338905f6940fe03609866317fd75dd53f27138..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,9 +72,11 @@ private:
        float height;
        std::vector<Axle> axles;
        std::vector<Bogie> bogies;
+       std::string object;
 
 public:
        VehicleType(unsigned);
+       virtual ~VehicleType() { } // XXX temporary
 
        unsigned get_article_number() const { return art_nr; }
        const std::string &get_name() const { return name; }
@@ -77,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