]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/vehicletype.h
Split vehicle placement code to a separate class
[r2c2.git] / source / 3d / vehicletype.h
index b779fa4292445c184f8e432cc05ff759be51635a..81a6468b81622470a5605f87f86e71a7f2a0df6e 100644 (file)
@@ -17,7 +17,7 @@ private:
        std::map<std::string, Msp::GL::Object *> objects;
        Msp::GL::Object *body_object;
        std::vector<Msp::GL::Object *> bogie_objects;
-       std::vector<std::vector<Msp::GL::Object *> > axle_objects;
+       std::vector<Msp::GL::Object *> axle_objects;
        std::vector<Msp::GL::Object *> rod_objects;
 
 public:
@@ -25,9 +25,8 @@ public:
        ~VehicleType3D();
 
        const Msp::GL::Object *get_body_object() const { return body_object; }
-       const Msp::GL::Object *get_fixed_axle_object(unsigned) const;
+       const Msp::GL::Object *get_axle_object(unsigned) const;
        const Msp::GL::Object *get_bogie_object(unsigned) const;
-       const Msp::GL::Object *get_bogie_axle_object(unsigned, unsigned) const;
        const Msp::GL::Object *get_rod_object(unsigned) const;
 private:
        Msp::GL::Object *get_object(const std::string &);