bool advancing;
Controller *controller;
std::list<TrainAI *> ais;
- bool active;
unsigned current_speed_step;
bool speed_changing;
bool reverse;
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;
float get_speed() const;
float get_quantized_speed() const;
unsigned get_speed_step() const { return current_speed_step; }
- bool is_active() const { return active; }
bool get_function(unsigned) const;
unsigned get_functions() const { return functions; }
void unplace();
bool is_placed() const { return !allocator.empty(); }
void stop_at(Block *);
- bool free_block(Block &);
- void free_noncritical_blocks();
- void reserve_more();
+ bool is_block_critical(const Block &) const;
+ BlockIter get_first_noncritical_block() const;
+ void refresh_blocks_from(Block &);
const BlockAllocator &get_block_allocator() const { return allocator; }
float get_reserved_distance() const;