- Locomotive &get_locomotive() const { return loco; }
- unsigned get_target_speed() const { return target_speed; }
+ ControlModel &get_control() const { return *control; }
+
+ Vehicle &get_vehicle(unsigned);
+ const Vehicle &get_vehicle(unsigned) const;
+
+ void set_control(const std::string &, float);
+ void set_active(bool);
+ void set_function(unsigned, bool);
+ float get_control(const std::string &) const;
+ bool is_active() const { return active; }
+ bool get_function(unsigned) const;
+ unsigned get_functions() const { return functions; }
+
+ void set_route(const Route *);
+ void go_to(const Track &);