【道岔定反位背景】
This commit is contained in:
parent
1753c0dd12
commit
4fec906849
@ -38,6 +38,39 @@ public enum BgSceneStatusRule {
|
|||||||
signal.setBlockade(true);
|
signal.setBlockade(true);
|
||||||
return getBgScene(simulation);
|
return getBgScene(simulation);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 道岔定位背景:将道岔设置为范围
|
||||||
|
*/
|
||||||
|
SWITCH_BG_SCENE("道岔定位背景") {
|
||||||
|
@Override
|
||||||
|
public String doHandle(Simulation simulation, MapElement mapElement) {
|
||||||
|
Switch iSwitch = (Switch) mapElement;
|
||||||
|
setSingleSwitchPositionDirectly(iSwitch, false);
|
||||||
|
return getBgScene(simulation);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 道岔定位背景:将道岔设置为反位
|
||||||
|
*/
|
||||||
|
SWITCH_NP_BG_SCENE("道岔定位背景") {
|
||||||
|
@Override
|
||||||
|
public String doHandle(Simulation simulation, MapElement mapElement) {
|
||||||
|
Switch iSwitch = (Switch) mapElement;
|
||||||
|
setSingleSwitchPositionDirectly(iSwitch, false);
|
||||||
|
return getBgScene(simulation);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 道岔反位背景:将道岔设置为定位
|
||||||
|
*/
|
||||||
|
SWITCH_RP_BG_SCENE("道岔反位背景") {
|
||||||
|
@Override
|
||||||
|
public String doHandle(Simulation simulation, MapElement mapElement) {
|
||||||
|
Switch iSwitch = (Switch) mapElement;
|
||||||
|
setSingleSwitchPositionDirectly(iSwitch, true);
|
||||||
|
return getBgScene(simulation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user