]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/track.h
Add a flag to Track to indicate that its path is changing
[r2c2.git] / source / libr2c2 / track.h
index 3ae5d602295dcd1fdcbf074b8d47880e8d5e45c8..4dbfa2db87eabd56c12616f759adebdef1f4ca2c 100644 (file)
@@ -41,6 +41,7 @@ private:
        unsigned sensor_id;
        std::vector<Track *> links;
        unsigned active_path;
+       bool path_changing;
 
        Track(const Track &);
        Track &operator=(const Track &);
@@ -69,6 +70,7 @@ public:
        unsigned get_sensor_id() const { return sensor_id; }
        void set_active_path(unsigned);
        unsigned get_active_path() const { return active_path; }
+       bool is_path_changing() const { return path_changing; }
 
        int get_endpoint_by_link(Track &) const;
        Vector get_endpoint_position(unsigned) const;