]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/track.h
Instantly set turnout paths when loading state
[r2c2.git] / source / libr2c2 / track.h
index 1d8cd714bf279a50dd726abf1852bc85955585c7..ba59da0ad95b9badc3e55401c7b95a7bd764bf33 100644 (file)
@@ -23,6 +23,7 @@ public:
        public:
                Loader(Track &);
        private:
+               void path(unsigned);
                void position(float, float, float);
                void rotation(float);
                void sensor_address(unsigned);
@@ -43,6 +44,7 @@ private:
        float slope;
        bool flex;
        unsigned turnout_addr;
+       unsigned turnout_id;
        unsigned sensor_addr;
        std::vector<Track *> links;
        unsigned active_path;
@@ -103,8 +105,10 @@ public:
        AttachmentList get_attachments_ordered(unsigned) const;
 
        void save(std::list<Msp::DataFile::Statement> &) const;
+       void save_dynamic(std::list<Msp::DataFile::Statement> &) const;
 private:
        void turnout_event(unsigned, unsigned);
+       void turnout_failed(unsigned);
 };
 
 } // namespace R2C2