]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/tracktype.h
Add a shortcut for getting the gauge of a TrackType
[r2c2.git] / source / libr2c2 / tracktype.h
index 64efe8c1907f27541d08af89a2898aa4c02040ac..9d167d18c7c91822ebd25b1dd047fc8a6233309e 100644 (file)
@@ -52,10 +52,12 @@ public:
        TrackType(const ArticleNumber &, const TrackAppearance &);
 
        const TrackAppearance &get_appearance() const { return appearance; }
+       float get_gauge() const;
        float get_total_length() const;
        float get_path_length(int) const;
        unsigned get_paths() const;
        unsigned get_n_paths() const;
+       unsigned coerce_path(unsigned, unsigned) const;
        unsigned get_state_bits() const { return state_bits; }
        bool is_turnout() const;
        bool is_dead_end() const;