]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/block.h
Allow intercepting and denying turnout route and locomotive speed changes
[r2c2.git] / source / libmarklin / block.h
index bdbcc3f3eb0ed2687a6d09e6e5d743782cef5ce9..68c57b88e39c102f8d38e5f8b75f00c93fd51afd 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-200 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -34,6 +34,7 @@ private:
        TrafficManager &trfc_mgr;
        unsigned       id;
        unsigned       sensor_id;
+       unsigned       turnout_id;
        std::set<Track *>     tracks;
        std::vector<Endpoint> endpoints;
        const Train    *train;
@@ -42,6 +43,7 @@ public:
        Block(TrafficManager &, Track &);
 
        unsigned get_sensor_id() const { return sensor_id; }
+       unsigned get_turnout_id() const { return turnout_id; }
        const std::set<Track *> &get_tracks() const { return tracks; }
        const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
        int get_endpoint_by_link(const Block &) const;