//public void check_stations_events(); //public void check_train_eents(); //public void add_train(train new_train); public void handle_of_all_events(main_event new_event) { if (new_event.GetType() == typeof(event_new_passenger)) { add_passenger((event_new_passenger)new_event); } else if (new_event.GetType() == typeof(event_arrival_of_the_train)) { //add_passenger((event_new_passenger)new_event); } }
static public void handle_of_all_events(main_event new_event) { new_event.processing_of_this_event(); }
static public void add_event_to_queue(main_event new_event) { list_of_all_events.Add(new_event); }