// ::: EVENTY STERUJĄCE :::
// SHIFT+2: wyjazdy do stacyjnych punktów ładunkowych (rampa w Macierzewie, plac ładunkowy w Paszkach, rampa w Całkowie, grupa bocznic w Wilisiu)
event keyctrl02 multiple 0.0 none mac_rampa paszwA_rampa paszwB_rampa cal_rampa wil_pzostalwil endevent
event mac_rampa multiple 0.0 zdawczy_info mac_rampa1 mac_rampa2 condition memcompare macierzewo * * endevent
event mac_rampa1 multiple 0.0 mac_manewry mac_tor4_podrampe1 condition memcompare * 0 * endevent
event mac_rampa2 multiple 0.0 mac_manewry mac_tor4_spodrampy1 condition memcompare * 93 * endevent

event paszwA_rampa multiple 0.0 zdawczy_info paszw_tor1_podrampe paszw_tor1_spodrampy condition memcompare paszki * * endevent
event paszw_tor1_podrampe multiple 0.0 paszw_manewry_tory12 paszw_tor1_manewry_podrampe1 condition memcompare nic * * endevent
event paszw_tor1_spodrampy multiple 0.0 paszw_manewry_tory12 paszw_tor1_manewry_spodrampy1 condition memcompare podrampe3 * * endevent

event paszwB_rampa multiple 0.0 zdawczy_info paszw_tor2_podrampe paszw_tor2_spodrampy condition memcompare paszkiB * * endevent
event paszw_tor2_podrampe multiple 0.0 paszw_manewry_tory12 paszw_tor2_manewry_podrampe1 condition memcompare * 0 * endevent
event paszw_tor2_spodrampy multiple 0.0 paszw_manewry_tory12 paszw_tor2_manewry_spodrampy1 condition memcompare * 5 * endevent

event cal_rampa multiple 0.0 zdawczy_info cal_rampa1 cal_rampa2 condition memcompare calkowo * * endevent
event cal_rampa1 multiple 0.0 cal_manewry cal_rampaA condition memcompare * 0 * endevent
event cal_rampa2 multiple 0.0 cal_manewry cal_rampaC condition memcompare * 2 * endevent

event wil_pzostalwil multiple 0.0 zdawczy_info wil_pzostalwilI condition memcompare wilis * * endevent
event wil_pzostalwilI multiple 0.0 wil_manewry_tory246 wil_manewry_tor4_dostalwilu wil_manewry_tor6_dostalwilu condition memcompare * 0 0 endevent

// SHIFT+3: wyjazdy na bocznice stacyjne (baza paliwowa w Orzechowie, elektrownia w Macierzewie i tartak w Całkowie) lub szlakowe (jednostka wojskowa k. Wilisia)
event keyctrl03 multiple 0.0 none orz_bazapaliw mac_elektrownia cal_tartak wil_wojsko endevent
event orz_bazapaliw multiple 0.0 zdawczy_info orz_manewry_dobazypaliw condition memcompare orzechowo * * endevent
event mac_elektrownia multiple 0.0 zdawczy_info mac_tor4_doelektrowni condition memcompare macierzewo * * endevent
event cal_tartak multiple 0.0 zdawczy_info cal_tartakI condition memcompare calkowo * * endevent
event cal_tartakI multiple 0.0 cal_manewry cal_manewry_tartak condition memcompare nic 0 * endevent
event wil_wojsko multiple 0.0 zdawczy_info wil_wojskoI condition memcompare wilis * * endevent
event wil_wojskoI multiple 0.0 wil_oczekuje_tory246 wil_wojskoprosze wil_tor4_zdawczyB-wojsko wil_tor6_zdawczyB-wojsko wil_wyjazdB_odp condition memcompare * 0 0 endevent

// SHIFT+4: wybór toru nr 4 w Macierzewie i Wilisiu
event keyctrl04 multiple 0.0 none mac_wybor4 wil_wybor4 endevent
event mac_wybor4 multiple 0.0 zdawczy_info mac_zplacunator4a condition memcompare macierzewo * * endevent
event mac_zplacunator4a multiple 0.0 mac_manewry mac_tor4_zplacu1 else mac_zplacunator4b condition memcompare * 43 * endevent
event mac_zplacunator4b multiple 0.0 mac_manewry mac_tor4_zplacu1 else mac_elektr_nator4 condition memcompare * 63 * endevent

event wil_wybor4 multiple 0.0 zdawczy_info wil_wojskopowrot4 condition memcompare wilis * * endevent
event wil_wojskopowrot4 multiple 0.0 zajetosc_mac-wil wil_wojskoczworka zajety_szlak_cal-wilA_zdawczy4 else wil_bocznicepowrot4 condition memcompare * * 1 endevent
event wil_bocznicepowrot4 multiple 0.0 wil_status_wyciag-bocznice wil_bocznice_tor4 else wil_ztoru6nator4 condition memcompare * * 1 endevent
event wil_ztoru6nator4 multiple 0.0 wil_status_tory246 wil_ztoru6nator4I else wil_ztoru7nator4 condition memcompare * * 1 endevent
event wil_ztoru6nator4I multiple 0.0 wil_manewry_tory246 wil_manewry_tor6_nator4A else wil_ztoru7nator4 condition memcompare * * 0 endevent
event wil_ztoru7nator4 multiple 0.0 wil_status_tory78 wil_ztoru7nator4I condition memcompare zajety * * endevent
event wil_ztoru7nator4I multiple 0.0 wil_manewry_tory78 wil_magazynczworka wil_manewry_tor7_nator4A condition memcompare wolny * * endevent

// SHIFT+5: wyjazdy do stacyjnych punktów ładunkowych (baza PLK w Wilisiu)
event keyctrl05 multiple 0.0 none wil_bazaplk endevent
event wil_bazaplk multiple 0.0 zdawczy_info wil_bazaplkI condition memcompare wilis * * endevent
event wil_bazaplkI multiple 0.0 wil_manewry_tory246 wil_manewry_tor4_dobazyplk wil_manewry_tor6_dobazyplk condition memcompare * 0 0 endevent

// SHIFT+6: wybór toru nr 6 w Macierzewie, Orzechowie i Wilisiu
event keyctrl06 multiple 0.0 none orz_baza6 mac_wybor6 wil_wybor6 endevent
event orz_baza6 multiple 0.0 zdawczy_info orz_baza6I condition memcompare orzechowo * * endevent
event orz_baza6I multiple 0.0 orz_manewry orz_manewry_nastacje6 condition memcompare nic * * endevent

event mac_wybor6 multiple 0.0 zdawczy_info mac_zplacunator6a condition memcompare macierzewo * * endevent
event mac_zplacunator6a multiple 0.0 mac_manewry mac_tor6_zplacu1 else mac_zplacunator6b condition memcompare * 43 * endevent
event mac_zplacunator6b multiple 0.0 mac_manewry mac_tor6_zplacu1 else mac_elektr_nator6 condition memcompare * 63 * endevent

event wil_wybor6 multiple 0.0 zdawczy_info wil_wojskopowrot6 condition memcompare wilis * * endevent
event wil_wojskopowrot6 multiple 0.0 zajetosc_mac-wil wil_wojskoszostka zajety_szlak_cal-wilA_zdawczy6 else wil_bocznicepowrot6 condition memcompare * * 1 endevent
event wil_bocznicepowrot6 multiple 0.0 wil_status_wyciag-bocznice wil_bocznice_tor6 else wil_ztoru7nator6 condition memcompare * * 1 endevent
event wil_ztoru4nator6 multiple 0.0 wil_status_tory246 wil_ztoru4nator6I else wil_ztoru7nator6 condition memcompare * 1 * endevent
event wil_ztoru4nator6I multiple 0.0 wil_manewry_tory246 wil_manewry_tor4_nator6A else wil_ztoru7nator6 condition memcompare * 0 * endevent
event wil_ztoru7nator6 multiple 0.0 wil_status_tory78 wil_ztoru7nator6I condition memcompare zajety * * endevent
event wil_ztoru7nator6I multiple 0.0 wil_manewry_tory78 wil_magazynszostka wil_manewry_tor7_nator6A condition memcompare wolny * * endevent

// SHIFT+7: wyjazd do magazynu w Wilisiu przy torze nr 7
event keyctrl07 multiple 0.0 none wil_wybor7 endevent
event wil_wybor7 multiple 0.0 zdawczy_info wil_bocznicepowrot7 condition memcompare wilis * * endevent
event wil_bocznicepowrot7 multiple 0.0 wil_status_wyciag-bocznice wil_bocznice_tor7 else wil_magazyn condition memcompare * * 1 endevent
event wil_magazyn multiple 0.0 wil_manewry_tory246 wil_magazynprosze wil_manewry_tor4_domagazynuA wil_manewry_tor6_domagazynuA wil_manewry1_odp condition memcompare * 0 0 endevent

// SHIFT+8: wybór toru nr 8 w Orzechowie
event keyctrl08 multiple 0.0 none orz_baza8 endevent
event orz_baza8 multiple 0.0 zdawczy_info orz_baza8I condition memcompare orzechowo * * endevent
event orz_baza8I multiple 0.0 orz_manewry orz_manewry_nastacje8 condition memcompare nic * * endevent

// SHIFT+9: obloty w Orzechowie, Macierzewie, Paszkach i Całkowie
event keyctrl09 multiple 0.0 none orz_oblot paszw_oblot mac_oblot cal_oblot endevent
event orz_oblot multiple 0.0 zdawczy_info orz_oblotI condition memcompare orzechowo * * endevent
event orz_oblotI multiple 0.0 orz_manewry orz_manewry_oblotA condition memcompare nic * * endevent
event mac_oblot multiple 0.0 zdawczy_info mac_tor4_oblot1 condition memcompare macierzewo * * endevent
event paszw_oblot multiple 0.0 zdawczy_info paszw_oblotI condition memcompare paszkiB * * endevent
event paszw_oblotI multiple 0.0 paszw_manewry_tory12 paszw_tor2_manewry_oblot1 condition memcompare * 0 * endevent
event cal_oblot multiple 0.0 zdawczy_info cal_oblotI condition memcompare calkowo * * endevent
event cal_oblotI multiple 0.0 cal_manewry cal_oblotA condition memcompare * 0 * endevent