]> git.tdb.fi Git - r2c2.git/blobdiff - source/network/train.h
Add a new remote control program with GLtk-based UI
[r2c2.git] / source / network / train.h
index 5c938dcbe0afc9517cb565e654912cfb973d4b58..c908beea77c1b8f909e41f191a2597cbdaf50b4f 100644 (file)
@@ -35,6 +35,7 @@ private:
 public:
        NetTrain(Client &, const TrainInfoPacket &);
 
+       Client &get_client() const { return client; }
        const VehicleType &get_loco_type() const { return loco_type; }
        unsigned get_address() const { return address; }
        const std::string &get_name() const { return name; }
@@ -48,6 +49,7 @@ public:
        bool get_function(unsigned i) const { return (functions>>i)&1; }
        void set_route(const std::string &);
        const std::string &get_route() const { return route; }
+       const std::string &get_status() const { return status; }
 
        void process_packet(const TrainControlPacket &);
        void process_packet(const TrainFunctionPacket &);