added two new conditions: CarInTrain and CarOrientation

This commit is contained in:
Stephan Richter
2020-12-10 11:30:33 +01:00
parent 1b7103ffbd
commit 0855a943eb
11 changed files with 190 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ public class StopAllTrains extends Action {
@Override
public boolean fire(Context context) {
Train.list().forEach(train -> train.stopNow());
BaseClass.listElements(Train.class).forEach(train -> train.stopNow());
return true;
}
}