]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/vehicletype.h
Add a vehicle property for swapping directions
[r2c2.git] / source / libr2c2 / vehicletype.h
index 461a3bec535198931f1a74604d2618c6c533f91e..33d7d6590dba03fdec299a0e4932a5f1e1528f21 100644 (file)
@@ -134,6 +134,7 @@ private:
        std::string name;
        bool locomotive;
        std::map<unsigned, std::string> functions;
+       bool swap_direction;
        float length;
        float width;
        float height;
@@ -150,6 +151,7 @@ public:
        bool is_locomotive() const { return locomotive; }
        unsigned get_max_function() const;
        const std::map<unsigned, std::string> &get_functions() const { return functions; }
+       bool get_swap_direction() const { return swap_direction; }
        float get_length() const { return length; }
        float get_width() const { return width; }
        float get_height() const { return height; }