]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.h
New timetable system, which works like an actual timetable
[r2c2.git] / source / libr2c2 / train.h
index 340537a89a401242fd08cabb2c004459892ec36e..25392bd768db8f06493fe414fb6f9e038068cec1 100644 (file)
@@ -35,6 +35,7 @@ public:
                void name(const std::string &);
                void quantized_speed();
                void router();
+               void timetable();
                void vehicle(ArticleNumber);
        };
 
@@ -51,6 +52,7 @@ private:
        const VehicleType &loco_type;
        unsigned address;
        std::string protocol;
+       unsigned loco_id;
        std::string name;
        const Train *preceding_train;
        std::vector<Vehicle *> vehicles;
@@ -96,6 +98,7 @@ public:
        float get_speed() const;
        float get_quantized_speed() const;
        unsigned get_speed_step() const { return current_speed_step; }
+       float get_maximum_speed() const;
        bool get_function(unsigned) const;
        unsigned get_functions() const { return functions; }