enum ArrivalState
{
ON_THE_WAY,
+ WAITING_FOR_SEQUENCE,
RESERVED_TO_END,
+ ADVANCED_TO_END,
ARRIVED
};
const Route *get_route() const;
unsigned get_current_sequence() const { return current_sequence; }
private:
+ void use_planned_route();
void route_changed();
public:
void create_metrics();
bool create_lead_route();
- bool is_valid_for_track(const Route &, const TrackIter &) const;
bool advance_to_track(RouteList::iterator &, const TrackIter &);
+ static void get_routers(Layout &, std::vector<TrainRouter *> &);
static void start_planning(Layout &);
+ static void apply_plan(Layout &, TrainRoutePlanner &);
};
} // namespace R2C2