]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/timetable.h
Sync timetable on clock discontinuity
[r2c2.git] / source / libr2c2 / timetable.h
index 9ec804e0692d02834c72fa2de50bdb4fc6f0c795..75572490665ae80d66a670cc6f42131cdb68dcf6 100644 (file)
@@ -2,12 +2,12 @@
 #define LIBR2C2_TIMETABLE_H_
 
 #include <msp/datafile/objectloader.h>
+#include "trackchain.h"
 #include "trainai.h"
 
 namespace R2C2 {
 
 class Layout;
-class TrackChain;
 
 class Timetable: public TrainAI
 {
@@ -44,11 +44,13 @@ public:
                private:
                        void block(unsigned);
                        void time(Msp::Time::RawTime);
-                       void zone(const std::string &, unsigned);
+                       void zone(const std::string &);
+                       void zone_numbered(const std::string &, unsigned);
                };
 
                RowType type;
                TrackChain *target;
+               TrackChain::Direction direction;
                Msp::Time::TimeDelta time;
 
                Row();
@@ -96,6 +98,7 @@ private:
        void update_route();
        void event(TrainAI &, const Message &);
        void record_time();
+       void clock_discontinuity();
 };
 
 } // namespace R2C2