void name(const std::string &);
void quantized_speed();
void router();
+ void timetable();
void vehicle(ArticleNumber);
};
const VehicleType &loco_type;
unsigned address;
std::string protocol;
+ unsigned loco_id;
std::string name;
const Train *preceding_train;
std::vector<Vehicle *> vehicles;
float get_speed() const;
float get_quantized_speed() const;
unsigned get_speed_step() const { return current_speed_step; }
+ float get_maximum_speed() const;
bool get_function(unsigned) const;
unsigned get_functions() const { return functions; }
return 0;
}
- void place(const BlockIter &);
+ bool place(const BlockIter &);
void unplace();
bool is_placed() const { return !allocator.empty(); }
void stop_at(Block *);
void control_changed(const Controller::Control &);
void loco_speed_event(unsigned, unsigned, bool);
void loco_func_event(unsigned, unsigned, bool);
- void sensor_state_changed(Sensor &, Sensor::State);
+ void advanced(Block &, Sensor *);
void halt_event(bool);
void block_reserved(const Block &, const Train *);
float get_reserved_distance_until(const Block *) const;