re-implemented functions of locomotives

This commit is contained in:
Stephan Richter
2021-06-17 14:21:41 +02:00
parent aa9c87776d
commit dafcf651c3
7 changed files with 151 additions and 222 deletions

View File

@@ -31,7 +31,8 @@ public class SwitchFunction extends Action {
if (isNull(context) || isNull(context.train())) return false;
switch (effect) {
case TOGGLE:
context.train().toggleFunction(function);
// context.train().toggleFunction(function);
// TODO
return true;
case ON:
context.train().setFunction(function, true);